• 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: Subclassing in plugins
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclassing in plugins


  • Subject: Re: Subclassing in plugins
  • From: Finlay Dobbie <email@hidden>
  • Date: Fri, 25 Oct 2002 11:43:16 +0100

On Friday, October 25, 2002, at 11:19 am, Drew McCormack wrote:

The Molecule class is one of the classes duplicated in the main app and the plugin. I thus conclude that including a class implementation in both the main app and one or more plugins is illegal, and that someone should tell Mike Beam. Is this conclusion correct?

Of course. You can't have two implementations of the same class, how on earth would that work?

More importantly for me, what is the easiest way to be able to subclass a class in the main application from within a plugin?

I also would like to know just how to use a class from the main app from within a plugin. I thought I only needed to include the header file of the class in the plugin to achieve this, but then I get a link error. And if I include the implementation file of the class too, well, then I am back where I started.

Specify -bundle_loader in LDFLAGS. See the linker docs for more info.

Either that, or you could use an internal framework (that's how I'm currently doing it in a project, but it's a bit tedious setting up all the targets).

-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Subclassing in plugins
      • From: Drew McCormack <email@hidden>
References: 
 >Subclassing in plugins (From: Drew McCormack <email@hidden>)

  • Prev by Date: CarbonWindow in CocoaApp
  • Next by Date: Re: Security framework refuses to work at all
  • Previous by thread: Subclassing in plugins
  • Next by thread: Re: Subclassing in plugins
  • Index(es):
    • Date
    • Thread