Re: Implementing Full Screen for 10.7 but app should also run on 10.6
Re: Implementing Full Screen for 10.7 but app should also run on 10.6
- Subject: Re: Implementing Full Screen for 10.7 but app should also run on 10.6
- From: Richard Somers <email@hidden>
- Date: Mon, 14 Nov 2011 08:27:36 -0700
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 (email@hidden)
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:
This email sent to email@hidden