• 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
Disabling category method at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disabling category method at runtime


  • Subject: Disabling category method at runtime
  • From: "Joe Goh" <email@hidden>
  • Date: Mon, 11 Sep 2006 13:14:08 +0800

I'm currently working around a bug in Palm HotSync and Core Data, and
in order to do that, I had to implement a category for NSArray
valueForKey:

I wouldn't want to ship two seperate applications, one compiled just
for Palm HotSync and one for everybody else, so is there a way to
disable/remove or enable/add a category at runtime?

I've found this previous thread:
http://www.cocoabuilder.com/archive/message/cocoa/2005/5/8/135221 , is
this the best way?

Alternatively, I have thought about adding some code to detect whether
my code is currently running under Palm HotSync or not, but how do I
make the category method (valueForKey in this case) run the original
method that it has overidden?

Joe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Exposing a 'foreign' database through NSArrayController?
  • Next by Date: Help
  • Previous by thread: Re: Exposing a 'foreign' database through NSArrayController?
  • Next by thread: Accept target when not first responder
  • Index(es):
    • Date
    • Thread