• 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: on launched with cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >on launched with cocoa (From: "Mr. Gecko" <email@hidden>)
 >Re: on launched with cocoa (From: John Stiles <email@hidden>)
 >Re: on launched with cocoa (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Networked sync service to non .mac server?
  • Next by Date: Re: [Moderator] iPhone discussion here - RETRACTION
  • Previous by thread: Re: on launched with cocoa
  • Next by thread: Re: on launched with cocoa
  • Index(es):
    • Date
    • Thread