Extending already loaded objects using plugins?
Extending already loaded objects using plugins?
- Subject: Extending already loaded objects using plugins?
- From: עפרי וולפוס <email@hidden>
- Date: Sat, 15 Jan 2005 16:53:44 +0200
Hi,
I'm trying to extend an already loaded object with a category from a plugin.
I mean lets assume that the program has an object called MyObject and that it has the method - (void)doSomething.
i want that when my plugin is loaded it will replace the -doSomething method with another one.
now i'm trying to do it like this:
@interface MyObject (Additions)
- (void)doSomething;
@end
@implementation MyObject (Additions)
- (void)doSomething
{
...
}
@end
the problem is that in this way, the plugin wouldn't compile and i'm getting the error "Undefined symbols: .obj_class_name_MyObject" but if i include both "MyObject.h" and "MyObject.m" with the plugin, it simply does nothing and use the original implementation of -doSomething.
what am i doing wrong?
thanks and sorry about my english,
ofri
---------------------------------------
Ofri Wolfus
email@hidden
email@hidden
ICQ: 147993319
MSN: email@hidden
http://goochi.kicks-ass.org
---------------------------------------
_______________________________________________
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