• 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: Find app's working directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Find app's working directory


  • Subject: Re: Find app's working directory
  • From: Sam Carr <email@hidden>
  • Date: Mon, 5 Jan 2004 15:11:08 +0000

You should be able to use:

NSString *appPath = [NSBundle mainBundle];

Sam

On 5 Jan 2004, at 2:43 pm, Chad Armstrong wrote:

Perhaps I'm just remembering something, but I'm trying to retrieve the current running directory of my application. Will 'self' be able to return this information that I need, or will I need to go another route? If my application is running under /users/johndoe/myapp.app, I want to be able to retrieve the path name as an NSString.

Chad Armstrong
email@hidden
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Find app's working directory
      • From: Douglas Davidson <email@hidden>
    • Re: Find app's working directory
      • From: Sherm Pendley <email@hidden>
References: 
 >Find app's working directory (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: Fun GDB tricks
  • Next by Date: Re: Security opinion needed
  • Previous by thread: Find app's working directory
  • Next by thread: Re: Find app's working directory
  • Index(es):
    • Date
    • Thread