Hi all
In a Foundation tool, we initialise an object with a file in the path where
the executable resides:
[[Experiment alloc] initFromFile:@"test.gpe"];
It uses this code internally:
-(Experiment *) initFromFile:(NSString *) filePath
{
NSString* file_off_disk = [NSString stringWithContentsOfFile:filePath];
This works fine on OS X and Linux, but gives the following error on Win32:
2007-02-23 13:46:39.987 test.exe[1300] File NSData.m: 167. In
readContentsOfFile() attempt failed - The filename, directory name, or
volume label syntax is incorrect.
Tried this as an attempted quick fix but it doesn't help:
[[Experiment alloc] initFromFile:[@"test.gpe" stringByStandardizingPath]];
Is there an object and/or method available in Foundation that lets me easily
convert local filenames to global ones in a form that all systems will
understand?
Thx
Michael
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ _/ _/_/_/ Hopkins Research Ltd
_/ _/ _/ _/
_/_/_/_/ _/_/_/ http://www.hopkins-research.com/
_/ _/ _/ _/
_/ _/ _/ _/ 'touch the future'
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_______________________________________________
Help-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnustep