FROM : Ed Baskerville
DATE : Sun Apr 24 21:35:08 2005
Or, more accurately, the launch path of the task will be evaluated
relative to the current working directory of your app, *not* the
directory you set for the launched task. By default, the launched task
inherits the current working directory of the app, which is why it
seemed to work when you put your tool in build/ (when launching from
Xcode) or / (when launching outside Xcode).
--Ed
On Apr 24, 2005, at 12:25 PM, Ondra Cada wrote:
> Adam,
>
> On 24.4.2005, at 21:18, Adam wrote:
>
>> [ModcapEditorCmdlineTask setLaunchPath:@"ModcapEditorCmdline"];
>> [ModcapEditorCmdlineTask setCurrentDirectoryPath:
>> pathToModcapEditorCmdline];
>
> CWD and the launch path have nothing in common. Just use
>
> [ModcapEditorCmdlineTask setLaunchPath:[pathToModcapEditorCmdline
> stringByAppendingPathComponent:@"ModcapEditorCmdline"]];
>
> Incidentally, it is a bad style to use capitalized variables. The
> ModcapEditorCmdlineTask should be named modcapEditorCmdlineTask.
> ---
> Ondra Čada
> OCSoftware: <email_removed> http://www.ocs.cz
> private <email_removed> http://www.ocs.cz/oc
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/
> <email_removed>
>
> This email sent to <email_removed>
>
DATE : Sun Apr 24 21:35:08 2005
Or, more accurately, the launch path of the task will be evaluated
relative to the current working directory of your app, *not* the
directory you set for the launched task. By default, the launched task
inherits the current working directory of the app, which is why it
seemed to work when you put your tool in build/ (when launching from
Xcode) or / (when launching outside Xcode).
--Ed
On Apr 24, 2005, at 12:25 PM, Ondra Cada wrote:
> Adam,
>
> On 24.4.2005, at 21:18, Adam wrote:
>
>> [ModcapEditorCmdlineTask setLaunchPath:@"ModcapEditorCmdline"];
>> [ModcapEditorCmdlineTask setCurrentDirectoryPath:
>> pathToModcapEditorCmdline];
>
> CWD and the launch path have nothing in common. Just use
>
> [ModcapEditorCmdlineTask setLaunchPath:[pathToModcapEditorCmdline
> stringByAppendingPathComponent:@"ModcapEditorCmdline"]];
>
> Incidentally, it is a bad style to use capitalized variables. The
> ModcapEditorCmdlineTask should be named modcapEditorCmdlineTask.
> ---
> Ondra Čada
> OCSoftware: <email_removed> http://www.ocs.cz
> private <email_removed> http://www.ocs.cz/oc
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/
> <email_removed>
>
> This email sent to <email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| Adam | Apr 24, 21:18 | |
| Ondra Cada | Apr 24, 21:25 | |
| Finlay Dobbie | Apr 24, 21:32 | |
| Ed Baskerville | Apr 24, 21:35 |






Cocoa mail archive

