• 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: Plugins work in PB, but not as standalone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plugins work in PB, but not as standalone


  • Subject: Re: Plugins work in PB, but not as standalone
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 29 Oct 2003 11:54:52 -0800

On Oct 28, 2003, at 3:23 PM, Kevin Wojniak wrote:

OK I just finished writing my app so it now uses plugins and it works all fine and dandy when I build and run it in Project Builder. But if I open it from the Finder (or Dock), it doesn't load any plugins. The call for principleClass returns null.

If you're using PB, then chances are you made your application too dependent on the PWD[1]. Check to make sure you are using the NSBundle class to get paths to application-relative directories. Do not rely on the PWD being constant; PB sets it to the project's build directory when running, but the Finder sets it to /, and anyone running the application from the CLI may have something completely different.

This is a frequently asked question, so now I will refer you to the archives:
<http://cocoa.mamasam.com/>

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/

"I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." - Bjarne Stroustrup

[1] Present Working Directory
_______________________________________________
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.

References: 
 >Plugins work in PB, but not as standalone (From: Kevin Wojniak <email@hidden>)

  • Prev by Date: Re: NSImage handling...
  • Next by Date: Re: WebController
  • Previous by thread: Plugins work in PB, but not as standalone
  • Next by thread: HeaderDoc misses some methods?
  • Index(es):
    • Date
    • Thread