Re: NSTask not using arguments?
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