• 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
Why is NSString->FSRef so hard?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why is NSString->FSRef so hard?


  • Subject: Why is NSString->FSRef so hard?
  • From: Erg Consultant <email@hidden>
  • Date: Sat, 25 Apr 2009 16:33:35 -0700 (PDT)

I am trying to convert an NSString containing a path to a file directly to an FSRef. If there are no special characters in the path, it's easy - I can go from NSString to CFURL to FSRef.

But if the path contains any special characters at all, both CFURL and NSURL creation routines fail. No matter what I do, or which routines I use, it won't work.

Unfortunately I am stuck with some 3rd party apps that have special characters like (tm) in their bundle names and I can't change them.

Isn't there some easy way to get an FSRef from an NSString that is a path containing special characters?

Thanks,

Erg




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Why is NSString->FSRef so hard?
      • From: "Sean McBride" <email@hidden>
    • Re: Why is NSString->FSRef so hard?
      • From: "Stephen J. Butler" <email@hidden>
    • Re: Why is NSString->FSRef so hard?
      • From: Michael Ash <email@hidden>
    • Re: Why is NSString->FSRef so hard?
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: NSButtonCell binds only readonly; Non-bool bindings OK.
  • Next by Date: Re: undoMenuTitleForUndoActionName
  • Previous by thread: Re: Trying to get flagsChanged: to work
  • Next by thread: Re: Why is NSString->FSRef so hard?
  • Index(es):
    • Date
    • Thread