• 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: Drew McCormack <email@hidden>
  • Date: Fri, 25 Oct 2002 18:27:23 +0200

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



Hi Finlay,

I opted for using an internal framework. It seemed to work perfectly: I had an executable and it ran without crashing. But then I tried to move the executable out of the build directly. It doesn't work anymore.

This must be because there is a hard-coded path in one of the plugins, the internal framework, or the app. My bet is that the plugins are not using the framework embedded in the application, but are using the framework in the build directory, which is the path entered in the "Frameworks and Libraries" section.

So I think I've characterized the problem, but how do I fix it?

To summarize my current situation:
I have an internal framework target with an install path set to @executable_path/../Frameworks
I have a copy phase in my application target which copies the internal framework to "Frameworks"
I have plugins which get linked with the framework in the product directory (eg /Users/cormack/MyProg/build/InternalFramework.framework)

Can you tell me where I'm going wrong?

Drew

========================================
Dr. Drew McCormack (Kmr. R153)
Afd. Theoretische Chemie
Faculteit Exacte Wetenschappen
Vrije Universiteit Amsterdam
De Boelelaan 1083
1081 HV Amsterdam
The Netherlands

Email email@hidden
Telephone +31 20 44 47623
Mobile +31 6 483 21307
Fax +31 20 44 47629
_______________________________________________
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: Finlay Dobbie <email@hidden>
References: 
 >Re: Subclassing in plugins (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Cocoa-Java: Modifying and scrolling NSTextView contents from another thread
  • Next by Date: Re: Transparent Screensaver
  • Previous by thread: Re: Subclassing in plugins
  • Next by thread: Re: Subclassing in plugins
  • Index(es):
    • Date
    • Thread