That's worked fine. Thanks a lot. I had discovered
'stringWithContentsOfFile' and was working on the assumption that I
needed to find something equivalent such as:
Not for you debugging purposes, for such cases, plain
NSLog(@"about to open file: \"%@\"",[panel filename]);
or perhaps
NSRunAlertPanel(@"About to open a filename:",@"%@",nil,nil,nil,[panel
filename]);
is completely sufficient and all right, but whilst the [panel
filename] is a perfectly valid NSString containing the path useable
in almost all situations -- it is not quite all right for the one you
want to display the file name to the user. If so happens, what you
need is
The trick is the filesystem may change the real filename (returned by
the NS*Panel -filename method) to somewhat mangled one for display
purposes, like hiding suffixes, translating some folder names into
the current language, and so forth...
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden