Re: on launched with cocoa
Re: on launched with cocoa
- Subject: Re: on launched with cocoa
- From: Nir Soffer <email@hidden>
- Date: Mon, 10 Mar 2008 22:01:07 +0200
On Mar 10, 2008, at 20:14, Mr. Gecko wrote:
Well I have a global that is set in a header file. In my
awakeFromNib I have it set the globals to the path of an command
line tool in the applications resource
Don't do this.
To find an executable in your bundle, use NSBundle.
For example:
NSString *toolPath = [[NSBundle mainBundle]
pathForResource:@"mytool" ofType:@""];
Best Regards,
Nir Soffer
_______________________________________________
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