Re: How do I create a file name with a "/" in it?
Re: How do I create a file name with a "/" in it?
- Subject: Re: How do I create a file name with a "/" in it?
- From: John Stiles <email@hidden>
- Date: Wed, 21 Sep 2005 17:48:55 -0700
Well, NSDocument appears to do the right thing; I don't know when
this was fixed, but in earlier versions of the OS, I thought it
showed ":". Maybe my memory is wrong.
At any rate, in Cocoa, if you say NSLog( [myPath
fileSystemRepresentation] ), you will see the ":" character where the
filename has slashes. Terminal behaves the same way. Posix file
commands like fopen also expect colons where slashes ought to be.
This disparity is visible to the end user in many places; as a random
example (this was the first thing I tried, and it worked), try
putting a slash in the filename of an image, opening it in
Preview.app, and then do Tools > Get Info. There's that colon.
On Sep 21, 2005, at 5:02 PM, Corbin Dunn wrote:
On Sep 21, 2005, at 4:45 PM, John Stiles wrote:
Err... you open "My file with / in it.txt" in a Cocoa application :)
Carbon apps show "/". Cocoa apps show ":". It's a little bonkers.
I don't think that is true -- which apps display ":"? TextEdit does
not. If they are displaying ":", it is possibly a bug we should fix.
thanks,
corbin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden