• 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: Current directory problem with bundles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Current directory problem with bundles (From: Odin Jensen <email@hidden>)

  • Prev by Date: Current directory problem with bundles
  • Next by Date: Localized Help?
  • Previous by thread: Current directory problem with bundles
  • Next by thread: Localized Help?
  • Index(es):
    • Date
    • Thread