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.


_______________________________________________

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