Set proper animation behavior for window

This causes a window to animate when it opens just like windows in other
Lion apps do.
This commit is contained in:
Bjorn Winckler
2011-07-24 21:35:29 +02:00
parent 6f05829f7e
commit b8e2540fef
+1
View File
@@ -183,6 +183,7 @@
#if (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7)
[win setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
[win setAnimationBehavior:NSWindowAnimationBehaviorDocumentWindow];
#endif
return self;