I was using CFURLGetFSRef passing in the NSString which works fine as long as 
the path contains no special chars. If it does, CFURLGetFSRef returns nil.

Erg




________________________________
From: Nick Zitzmann <n...@chronosnet.com>
To: Erg Consultant <erg_consult...@yahoo.com>
Cc: cocoa-dev@lists.apple.com
Sent: Saturday, April 25, 2009 4:41:20 PM
Subject: Re: Why is NSString->FSRef so hard?


On Apr 25, 2009, at 5:33 PM, Erg Consultant wrote:

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


What, specifically, have you tried? I don't think I've ever had 
+fileURLWithPath: fail on me with a path string, even if the string contained 
non-ASCII characters.

Nick Zitzmann
<http://www.chronosnet.com/>


      
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to