Re: Irritating Problem with NSString Method and File Paths

2008-08-05 Thread Negm-Awad Amin
The file is inside your application directory? Than you should use NSBundles's API to find resources. NSString* thePath = [[NSBundle mainBundle] pathForResource:filename ofType:@"txt"] Amin Am Mo,04.08.2008 um 06:43 schrieb Patrick Walker: It seems that whenever I use Xcode to spawn the p

Re: Irritating Problem with NSString Method and File Paths

2008-08-04 Thread Jack Carbaugh
when i refer to a file, i used: file = [[NSMutableDictionary alloc] initWithContentsOfFile:[Folder stringByAppendingPathComponent: FileName]]; Folder is set up as: Folder = [[NSString alloc] initWithString:[@"path" stringByExpandingTildeInPath]]; and Filename is: FileName= [[NSMutabl

Re: Irritating Problem with NSString Method and File Paths

2008-08-03 Thread Phil
On Mon, Aug 4, 2008 at 4:43 PM, Patrick Walker <[EMAIL PROTECTED]> wrote: > It seems that whenever I use Xcode to spawn the program, it is able to find > the file but when spawning the program from Finder, it can never, ever find > the file. I've been looking online and no one seems to have come a

Irritating Problem with NSString Method and File Paths

2008-08-03 Thread Patrick Walker
It seems that whenever I use Xcode to spawn the program, it is able to find the file but when spawning the program from Finder, it can never, ever find the file. I've been looking online and no one seems to have come across this before or maybe it's because it's so late that I'm not seeing