• 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: Cocoa shell works great from PB, crashes as standalone.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Cocoa shell works great from PB, crashes as standalone. (From: Chilton Webb <email@hidden>)

  • Prev by Date: More on: converting C-strings to NSString
  • Next by Date: Re: Help for Help
  • Previous by thread: Re: Cocoa shell works great from PB, crashes as standalone.
  • Next by thread: Re: Cocoa shell works great from PB, crashes as standalone.
  • Index(es):
    • Date
    • Thread