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: Koen van der Drift <email@hidden>
- Date: Mon, 14 Nov 2011 13:41:44 -0500
On Mon, Nov 14, 2011 at 1:20 PM, Quincey Morris
<email@hidden> wrote:
> On Nov 14, 2011, at 07:15 , 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 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)?
>
> Don't follow the advice to
> define NSWindowCollectionBehaviorFullScreenPrimary yourself. It's really,
> really dangerous to replicate a fragment of one SDK in a build against an
> earlier SDK. What if the value changes in a later 10.7.x SDK, or if the
> value is invalidated in some way you can't foresee?
> There's only one safe way to use features from a later SDK: use the later
> SDK as your base SDK, and set your deployment target to the earlier system
> version, adding run-time checks to ensure that you don't use the later SDK's
> features on an earlier system.
> Unfortunately -- this is a known deficiency -- when you do that, you lose
> the ability to detect (at compile time) features of the later SDK that are
> used without the correct run-time checks.
>
Thanks for all the suggestions, I'm going to give it a try later today.
- 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