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

Re: Frameworks in plugins?


  • Subject: Re: Frameworks in plugins?
  • From: Christopher Holland <email@hidden>
  • Date: Thu, 03 Apr 2003 01:31:40 -0600

Michael,

Check to make sure that you are using [[NSBundle bundleForClass:[self class]] and not [NSBundle mainBundle] (which will return the app's bundle not the plugin's).

BUT, as far as I know, plugin bundles cannot have embedded frameworks within them.
Only application bundles can contain embedded frameworks.

Chris


On Wednesday, April 2, 2003, at 10:16 PM, Michael Dupuis wrote:

Greetings,

I'm trying to create a plugin that uses a framework. I
add the framework to my plugin target, and add it to
the plugin copy phase and it works just fine... in
Project Builder. JUST in Project Builder. When I try
and double-click on it in the Finder to run it, it
doesn't appear to be able to load my framework. This
message is printed to the console:

2003-03-20 23:53:29.238 TestApp[23613] *** -[NSBundle
load]: Error loading code
/Users/username/Dev/Builds/TestApp.app/Contents/PlugIns/EmailPlug- in.plugin/Contents/MacOS/EmailPlug-in
for bundle
/Users/username/Dev/Builds/TestApp.app/Contents/PlugIns/EmailPlug- in.plugin,
error code 0 (link edit error code 0, error number 2
(dyld:
/Users/username/Dev/Builds/TestApp.app/Contents/MacOS/TestApp
can't open library:
@executable_path/../Frameworks/Pantomime.framework/Versions/A/Pantomime
(No such file or directory, errno = 2)
))

My guess is that NSBundle is looking for the framework
in the wrong place, namely in the App bundle
frameworks folder, not the plugin's framework folder.
Anyone have any ideas on how I might fix this? I can't
seem to make any changes that allow this to run in the
Finder successfully.

TIA

Michael
_______________________________________________
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.
_______________________________________________
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.

  • Prev by Date: Re: NSResponder - rightMouseDown, What am I missing?
  • Next by Date: Re: Digest API?
  • Previous by thread: Re: resizing cells with NSBrowser
  • Next by thread: cc1plus
  • Index(es):
    • Date
    • Thread