• 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: Gideon King <email@hidden>
  • Date: Tue, 15 Nov 2011 01:30:28 +1000

You could do something like this:


#ifndef NSAppKitVersionNumber10_6
#define NSAppKitVersionNumber10_6 1038
#endif

#ifndef NSWindowCollectionBehaviorFullScreenPrimary
#define NSWindowCollectionBehaviorFullScreenPrimary 1 << 7
#endif


    if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6) {
        [[self window] setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
    }




HTH

Gideon



On 15/11/2011, at 1:15 AM, Koen van der Drift wrote:

> Another window size question, just putting it ina another thread.
>
> I'd like my application to use the full screen feature on 10.7, but
> the app should also run on 10.6  I tried adding
> NSWindowCollectionBehaviorFullScreenPrimary for my main window, but
> got an error since I am building agains 10.6 SDK.
>
> How do I make this work (if possible)?
>
> Thanks,
>
> - Koen.
> _______________________________________________

_______________________________________________

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

  • Follow-Ups:
    • Re: Implementing Full Screen for 10.7 but app should also run on 10.6
      • From: Kyle Sluder <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: Implementing Full Screen for 10.7 but app should also run on 10.6
  • Next by Date: Re: Witch controls to use to implement an Xcode (4.2) like "toolbar view"
  • Previous by thread: Re: 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