• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I create a file name with a "/" in it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How do I create a file name with a "/" in it?
      • From: "Sean McBride" <email@hidden>
References: 
 >How do I create a file name with a "/" in it? (From: Michael <email@hidden>)
 >Re: How do I create a file name with a "/" in it? (From: John Stiles <email@hidden>)
 >Re: How do I create a file name with a "/" in it? (From: Lachlan Cotter <email@hidden>)
 >Re: How do I create a file name with a "/" in it? (From: John Stiles <email@hidden>)
 >Re: How do I create a file name with a "/" in it? (From: Corbin Dunn <email@hidden>)

  • Prev by Date: How to join NSScrollView and NSTableView programmatically
  • Next by Date: Re: obj-c: how do i call an instance method in my super's super?
  • Previous by thread: Re: How do I create a file name with a "/" in it?
  • Next by thread: Re: How do I create a file name with a "/" in it?
  • Index(es):
    • Date
    • Thread