Disabling category method at runtime
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