On Mar 16, 2008, at 10:11, stephen joseph butler wrote:
On Sat, Mar 15, 2008 at 2:04 PM, Kevin Dixon <[EMAIL PROTECTED]> wrote:
Also, is there a better way to accomplish this?
There are a lot of buggy or unnecessarily complex answers in this
thread.
Use the code at the bottom of this CocoaDev link and be done with it:
The code you mention will not work for this case - Kevin asked how to
convert a url string to FSRef, not a file system path.
The first answer by Adam R. Maxwell is correct and simple:
NSURL *aURL = [NSURL fileURLWithPath:filePath];
CFURLGetFSRef((CFURLRef)aURL, &output);
Best Regards,
Nir Soffer
_______________________________________________
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 [EMAIL PROTECTED]