• 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: NSTask not using arguments?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask not using arguments?


  • Subject: Re: NSTask not using arguments?
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 24 Feb 2005 18:26:17 -0800

On Feb 24, 2005, at 6:58 PM, James McConnell wrote:

clarification (as I'm not able to test this), I would have to provide the
absolute path to the executable as it resides in my /Resources/Binaries/bin
folder in my Contents folder of my app package, correct? I'm fairly
certain, but I ask simply for clarification. And this of course would be
achieved by using [[NSBundle mainBundle] resourcePath] and appending the
correct subpath with "stringAppendingByString".

That might better be achieved by using something like [[NSBundle mainBundle] pathForResource:@"mytool" ofType:nil inDirectory:@"Binaries/bin"], rather than by fishing around in the bundle yourself. And if you ever do need to concatenate paths, -[NSString stringByAppendingPathComponent:] is better than string concatenation.


Douglas Davidson

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: NSTask not using arguments? (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: NSTask not using arguments?
  • Next by Date: Re: Clicking checkbox in outline view without selecting row
  • Previous by thread: Re: NSTask not using arguments?
  • Next by thread: Re: Re: NSTask not using arguments?
  • Index(es):
    • Date
    • Thread