• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Implementing Full Screen for 10.7 but app should also run on 10.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Implementing Full Screen for 10.7 but app should also run on 10.6 (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: Variable window size based on screen resolution
  • Next by Date: Re: Implementing Full Screen for 10.7 but app should also run on 10.6
  • Previous by thread: Implementing Full Screen for 10.7 but app should also run on 10.6
  • Next by thread: Re: Implementing Full Screen for 10.7 but app should also run on 10.6
  • Index(es):
    • Date
    • Thread