You need to use a full path, not count on the default directory--and others
have provided code to get the path.
--
Scott Ribe
scott_r...@killerbytes.com
http://www.killerbytes.com/
(303) 722-0567 voice
___
Cocoa-dev mailing list (Cocoa-dev@lists.appl
Am 19.04.2009 um 03:50 schrieb Carlos Eduardo Mello:
1. I know this is not the recommended way to open a file in a Cocoa
App, but this is just a quick utility
Your code is shorter than 2 lines Objective-C?
for use in class, so I don't wan't to change my file loading code
and deal with Fil
Hi everyone,
my Cocoa app (Objective-C++) works perfectly from within Xcode.
However when I double click the application in Finder it does not load
my data file.The file is a short text file which was placed next to
the executable in the "build>Debug" or "build>Release" folders. It is
loa
Forgot...here is the file loading code
bool ::LoadFromFile( string fileName, int which )
{
ifstream fin;
string temp, item;
int itemCount, i;
int lineCount = 0;
fin.open( fileName.c_str() );
if(fin)
{
while( !fin.eof