• 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: Quincey Morris <email@hidden>
  • Date: Mon, 14 Nov 2011 10:20:49 -0800

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 (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: Stefan Werner <email@hidden>
    • Re: Implementing Full Screen for 10.7 but app should also run on 10.6
      • From: Koen van der Drift <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: Troubles with Bold and Italic fonts - Cocoa
  • 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