Re: Plugins work in PB, but not as standalone
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.