• 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: Chris Ridd <email@hidden>
  • Date: Wed, 21 Sep 2005 18:31:24 +0100
  • Thread-topic: How do I create a file name with a "/" in it?

On 21/9/05 6:29, Michael <email@hidden> wrote:

> Hello,
>
> how do I programatically create a NSString holding a path with a file
> name that contains a "/" character?
>
> /Users/monk/Desktop/My file with / in it.txt
>
> where "My file with / in it.txt" is the name of the file.

You can't, because "/" separates path components in OS X.

If you replace that "/" with a ":" you'll find that the Finder displays the
file with a "/" in its name :-)

Cheers,

Chris


 _______________________________________________
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

References: 
 >How do I create a file name with a "/" in it? (From: Michael <email@hidden>)

  • Prev by Date: How do I create a file name with a "/" in it?
  • Next by Date: Re: How do I create a file name with a "/" in it?
  • Previous by thread: 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