• 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
Path To Folder Where App Is
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Path To Folder Where App Is


  • Subject: Path To Folder Where App Is
  • From: Adam <email@hidden>
  • Date: Mon, 21 Mar 2005 22:28:06 -0500

I am trying to get the path to the folder where my application is.

I have tried [[NSFileManager defaultManager] currentDirectoryPath] which works great during a run inside of xcode, but returns the root of the hard drive when the app launches on its own.

[[NSBundle mainBundle] executablePath]  returns
/Users/adam/Desktop/AGFIBS .0002/build/AGFIBS1.app

and

[[NSBundle mainBundle] executablePath] returns
/Users/adam/Desktop/AGFIBS .0002/build/AGFIBS1.app/Contents/MacOS/AGFIBS1



The path I want is /Users/adam/Desktop/AGFIBS .0002/build/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Path To Folder Where App Is
      • From: Charilaos Skiadas <email@hidden>
  • Prev by Date: I am Completly Stumped, NSTableView
  • Next by Date: Re: Path To Folder Where App Is
  • Previous by thread: Re: I am Completly Stumped, NSTableView
  • Next by thread: Re: Path To Folder Where App Is
  • Index(es):
    • Date
    • Thread