• 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: How to ignore Tiger-only category methods on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to ignore Tiger-only category methods on Leopard


  • Subject: Re: How to ignore Tiger-only category methods on Leopard
  • From: "Mark Munz" <email@hidden>
  • Date: Wed, 30 Jan 2008 14:14:23 -0800

A common approach is to put these types of methods into a separate
bundle that is only loaded in Tiger.

On 1/30/08, Nick Zitzmann <email@hidden> wrote:
>
> On Jan 30, 2008 AD, at 3:00 PM, Keith Blount wrote:
>
> > So, my question is, how do I have the preprocessor check the OS
> > version so that it can skip these methods in an #if #endif block if
> > the user is running Leopard?
>
>
> You can't. You can, however, make it so that the method is only
> present when Leopard is the deployment target by doing something like
> this:
>
> #if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
> ...
> #endif
>
> That way, the method will be included as long as you're targeting
> Tiger, but once you change that to Leopard, then your implementation
> will no longer be used.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
> _______________________________________________
>
> 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
>


--
Mark Munz
unmarked software
http://www.unmarked.com/
_______________________________________________

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: 
 >How to ignore Tiger-only category methods on Leopard (From: Keith Blount <email@hidden>)
 >Re: How to ignore Tiger-only category methods on Leopard (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: pathnames in Tiger not showing volume name
  • Next by Date: Re: Weird Altered Icon
  • Previous by thread: Re: How to ignore Tiger-only category methods on Leopard
  • Next by thread: How does the OS determine the priority for icon/application assignment
  • Index(es):
    • Date
    • Thread