Re: Current directory problem with bundles
Re: Current directory problem with bundles
- Subject: Re: Current directory problem with bundles
- From: j o a r <email@hidden>
- Date: Mon, 24 Nov 2003 09:29:26 +0100
You should not think of "current directory" as the directory where the
application / bundle resides. Think of it like the "current working
directory" in a shell - it is not related to where the binary is
located in the file system.
Look at "bundleForClass:", "executablePath" and "bundlePath" for ways
to find out where a bundle is on disc. I would also suggest that you
search the list archives for the Cocoa development mailing lists for
more info on this topic:
<http://cocoa.mamasam.com/>
j o a r
On 2003-11-24, at 08.43, Odin Jensen wrote:
> I have a problem where my application can find it's current directory
> (i.e. loading resources from ./) when launching from within XCode but
> not when launched from the finder.
> (It seems xcode just launches it in a current directory console)
>
> Do I need to do anything special with my bundle for it to be launched
> with it's directory as the current directory or am I missing something
> here.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.