• 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: Getting The Application Directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting The Application Directory


  • Subject: Re: Getting The Application Directory
  • From: David Remahl <email@hidden>
  • Date: Sun, 17 Feb 2002 04:37:34 +0100

> Does any one know of a method I can use to get the current director the
> application is running from? I've looked though the FileManager class
> and tried to use the working directory (thinking it is initaly set at
> the application directory), this works when I run it from project
> builder, but does not when I run it by it's self.
>
> Thanks for any help!
>
> - Joshua D. Orr -

[[NSBundle mainBundle] bundlePath] gives you your path as a string. I.e the
path to the .app package.

/ david
_______________________________________________
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: 
 >Getting The Application Directory (From: "Joshua D. Orr" <email@hidden>)

  • Prev by Date: Getting The Application Directory
  • Next by Date: Re: Getting The Application Directory
  • Previous by thread: Getting The Application Directory
  • Next by thread: Re: Getting The Application Directory
  • Index(es):
    • Date
    • Thread