Re: can't run app from applications folder -- permissions problem?
Re: can't run app from applications folder -- permissions problem?
- Subject: Re: can't run app from applications folder -- permissions problem?
- From: Christian Stieber <email@hidden>
- Date: Tue, 18 Apr 2006 15:16:43 +0200
At 13:59 18.04.2006 +0100, Ben Dougall wrote:
is UTF8String OK for passing as command lines? is that what i should use
instead of cString?
To me, it looks as if the /path/to/the/executable should come from
[NSString filesystemRepresentation], whereas the actual command
arguments should be cString (or whatever encoding the application
expects). I think I've never seen what the actual cString encoding
is... so maybe it's the same, maybe it's isolatin1, or something
very obscure.
Of course, the real question is whether you really WANT to use
system() at all. Using system() isn't such a great idea even for
Unix software; since you're working in an openstep environment,
using [NSTask launchedTaskWithLaunchPath:arguments:] might be more
appropiate --- it already knows about encoding issues. As a rule
of thumb, try to minimize "programming environment"-mixing to
cases where cocoa doesn't offer (any/appropiate/proper) support.
Christian
_______________________________________________
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