Re: Problem when overriding new Apple methods with my categories, what is the best solution?
Re: Problem when overriding new Apple methods with my categories, what is the best solution?
- Subject: Re: Problem when overriding new Apple methods with my categories, what is the best solution?
- From: Mike Blaguszewski <email@hidden>
- Date: Fri, 15 Dec 2006 19:03:52 -0500
If you're looking for a way to run code when a framework is loaded,
you can use the "Initialization Routine" target setting for this.
Just specify a C function in the framework, with a leading
underscore. (Since it's a linker setting, it wants the raw linker
symbol).
Another approach to your problem might be rename your methods, and
then override -doesNotRecognizeSelector: to call through to them if
they don't exist. That may be almost as shady as overriding
+initialize, though.
--
Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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