Re: Cocoa shell works great from PB, crashes as standalone.
Re: Cocoa shell works great from PB, crashes as standalone.
- Subject: Re: Cocoa shell works great from PB, crashes as standalone.
- From: Ondra Cada <email@hidden>
- Date: Tue, 23 Oct 2001 21:07:33 +0100
Chilton,
>
>>>>> Chilton Webb (CW) wrote at Tue, 23 Oct 2001 12:04:32 -0500:
CW> [gameserver setLaunchPath:@"./TCPServerAlpha"];
CW> [gameserver launch]; //<-- if I comment this out, it works.
cwd!
You want to use NSBundle to locate the app's folder (or directly the tool
inside it), and gave the gameserver an _absolute_ path (or you might use
NSFileManager setDirectoryPath, but absolute paths are much better
generally).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc