• 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
Bundle loading problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Bundle loading problem
      • From: Ambroise Confetti <email@hidden>
  • Prev by Date: Re: Help Viewer crashes under 10.1
  • Next by Date: Re: Bundle loading problem
  • Previous by thread: Re: Help Viewer crashes under 10.1
  • Next by thread: Re: Bundle loading problem
  • Index(es):
    • Date
    • Thread