• 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: Mont Rothstein <email@hidden>
  • Date: Sat, 15 Jan 2005 11:11:28 -0800

Where is your category? I assume because you refer to a plugin that it is in a separate bundle.

This bundle (the plugin) needs to link against whatever contains the original MyObject. Usually MyObject would be in a framework, which your application would also link against.

You need to tell you application where to find the bundle using +bundleWithPath: and then to load the bundle using -load.

Hope that helps,
-Mont


On Jan 15, 2005, at 6:53 AM, עפרי וולפוס 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
--------------------------------------- _______________________________________________
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
 _______________________________________________
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

  • Follow-Ups:
    • Re: Extending already loaded objects using plugins?
      • From: Brendan Younger <email@hidden>
References: 
 >Extending already loaded objects using plugins? (From: עפרי וולפוס <email@hidden>)

  • Prev by Date: RE: Re: Using a font without installing it
  • Next by Date: Re: Cocoa & NS ??
  • Previous by thread: Re: Extending already loaded objects using plugins?
  • Next by thread: Re: Extending already loaded objects using plugins?
  • Index(es):
    • Date
    • Thread