• 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: Dir of app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dir of app


  • Subject: Re: Dir of app
  • From: Gregory Weston <email@hidden>
  • Date: Tue, 18 Dec 2007 14:01:51 -0500

Wesley Smith wrote:

How does one find the directory of a the application one is in through
Objective-C?  I'd like to use it to build up file paths.

As someone else noted, the way to do that is through NSBundle or CFBundle.


But it should also be pointed out that there are very few tasks for which "find the path of the app" is part of the correct solution.

What are you really trying to do? What kind of file paths are you intending to build relative to the path of your executable?

G
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Dir of app
      • From: "Wesley Smith" <email@hidden>
  • Prev by Date: Core Data SQLite store problems?
  • Next by Date: Re: How to implement an "Accordion" view?
  • Previous by thread: Re: Dir of app
  • Next by thread: Re: Dir of app
  • Index(es):
    • Date
    • Thread