• 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
NSString, path and "/" char
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString, path and "/" char


  • Subject: NSString, path and "/" char
  • From: Trygve Inda <email@hidden>
  • Date: Fri, 24 Nov 2006 03:27:19 +0000
  • Thread-topic: NSString, path and "/" char

I am using:

urlPath = (NSURL *) CFURLCreateCopyAppendingPathComponent (NULL, (CFURLRef)
parentFolder, (CFStringRef) filename, false);

parentFolder is an NSURL and filename is an NSString

How can I properly handle the case where filename contains an "/"?

Basically I have a string that I want to turn into a filename and append to
a partial path, but the string might contain "/". Note that the string might
contain ":" as well so I need to deal with that case as well.

Thanks,

Trygve




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins (at) lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSString, path and "/" char
      • From: "Clark Cox" <email@hidden>
  • Prev by Date: Re: detecting the USB drives
  • Next by Date: Request [:.VIRUS.:]
  • Previous by thread: Re: ObjectAlloc tool and framework debugging
  • Next by thread: Re: NSString, path and "/" char
  • Index(es):
    • Date
    • Thread