• 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: Extending already loaded objects using plugins?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extending already loaded objects using plugins?


  • Subject: Re: Extending already loaded objects using plugins?
  • From: עפרי וולפוס <email@hidden>
  • Date: Sat, 15 Jan 2005 18:23:59 +0200

sorry i sent this message so many times. i didn't do it on purpose..


---------------------------------------
Ofri Wolfus
email@hidden
email@hidden
ICQ: 147993319
MSN: email@hidden
http://goochi.kicks-ass.org
---------------------------------------
On 15/01/2005, at 16:53, עפרי וולפוס wrote:

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
---------------------------------------
_______________________________________________
MacOSX-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/macosx-dev

 _______________________________________________
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: Extending already loaded objects using plugins?
  • Next by Date: Re: Fastest way to build an attributed string
  • Previous by thread: Re: Extending already loaded objects using plugins?
  • Next by thread: Using a font without installing it
  • Index(es):
    • Date
    • Thread