• 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: The best way to call Cocoa methods not implemented in previous versions of the SDK?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?


  • Subject: Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
  • From: Wim Lewis <email@hidden>
  • Date: Tue, 06 Sep 2011 17:45:00 -0700

On 6 Sep 2011, at 4:31 PM, Chris Hanson wrote:
> It may be better to actually check whether your code is running on Snow Leopard rather than make -respondsToSelector: checks.

Another reason to do this is that occasionally the method or class you're interested in actually appeared in an earlier OS revision but was private: in that case they might not have quite the same behavior as their eventually-public versions.

The NSAppKitVersionNumber (and similar) global variables are a quick and easy way to check the runtime version of a framework.


_______________________________________________

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: 
 >The best way to call Cocoa methods not implemented in previous versions of the SDK? (From: Oleg Krupnov <email@hidden>)
 >Re: The best way to call Cocoa methods not implemented in previous versions of the SDK? (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
  • Next by Date: Re: using AppKit additions in background threads
  • Previous by thread: Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
  • Next by thread: NSDatePickerCell in TableView/OutlineView
  • Index(es):
    • Date
    • Thread