Re: How to get the file path to my application
Re: How to get the file path to my application
- Subject: Re: How to get the file path to my application
- From: Ken Thomases <email@hidden>
- Date: Wed, 30 Jul 2008 23:30:19 -0500
On Jul 30, 2008, at 11:21 PM, Randy Canegaly wrote:
If I have a Cocoa application named Fred, how do programmatically
(in Fred's code) get the path to the directory where Fred.app is
stored?
[[NSBundle mainBundle] bundlePath]
Cheers,
Ken
_______________________________________________
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