Bundle loading problem
Bundle loading problem
- Subject: Bundle loading problem
- From: Dave Rosborough <email@hidden>
- Date: Sun, 19 Oct 2003 16:11:43 -0700
Hello all.
I'm creating a plug-in architecture for my app, and I'm having some
difficulties getting my plug-ins to load. Here's what I've done:
I created a framework containing an abstract class to be subclassed in
the plugin. I added this framework to a new "Cocoa Bundle" project,
and created a subclass of the abstract class. The framework and the
new bundle compile fine, no errors, no warnings.
I placed the framework in "~/Library/Application Support/MyApp", and
used the bundle-loading code from:
http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingCode/
Tasks/LoadingBundles.html
This has a nice code snippet to search all of the Application support
directories for bundles, and load them. The problem is, when my app
tries to execute [myBundle load] or [myBundle principalClass] it
crashes with signal 1.
I've tried recompiling, cleaning targets of the framework, plugin
bundle and app, etc. Nothing has solved the problem. Using
"print-object" in the debugger reveals that myBundle is getting the
right path, but for whatever reason the bundle just won't load.
Any ideas?
Thanks,
DaveR
_______________________________________________
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.