Do something like this.

- (void)prepareWindowCollectionBehavior
{
    if (MySystemVersion_10_07_OrLater()) {
#ifdef MAC_OS_X_VERSION_10_7
        NSWindowCollectionBehavior behavior = [_window collectionBehavior];
        behavior = behavior | NSWindowCollectionBehaviorFullScreenPrimary;
        [_window setCollectionBehavior:behavior];
#endif
    }
}

--Richard

On Nov 14, 2011, at 8:15 AM, Koen van der Drift wrote:

> I'd like my application to use the full screen feature on 10.7, but
> the app should also run on 10.6

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to