• 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: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)


  • Subject: Re: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 01 Jan 2015 17:35:40 +0100

On 01 Jan 2015, at 16:15, SevenBits <email@hidden> wrote:
> Uli: is it possible to create a category which defines a method called containsString:, and only have it activate on 10.9 or lower and use the new Apple method on 10.10 and above?

 In theory, you could add code on 10.8 and earlier that registers the IMP of sb_containsString: for the selector containsString: as well, using the ObjC runtime API, or put the category in a loadable bundle and not load that on 10.10 and later, but I don’t recommend it as a general approach.

 It’s just too easy to run into conflicts with someone else’s category. Also, sometimes Apple privately implement a selector with different parameter types in an older OS version, then change its parameters but not the name before they make it public, and you’d end up failing to replace it (or worse, replacing it successfully and breaking the OS on the way).

 But yeah, unless you set the min *and* max OS version to <= 10.9, you prolly won’t get an error message when you use this selector.

Cheers,
-- Uli Kusterer
“The Witnesses of TeachText are everywhere...”
http://zathras.de


_______________________________________________

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: 
 >Re: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?) (From: Uli Kusterer <email@hidden>)
 >Fwd: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?) (From: SevenBits <email@hidden>)

  • Prev by Date: Fwd: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)
  • Next by Date: Re: Image Sizing
  • Previous by thread: Fwd: Application Crashing Under Mavericks, but not Yosemite (Entitlements Issue?)
  • Next by thread: Bifurcating text color in QL on X.6, how?
  • Index(es):
    • Date
    • Thread