Re: URI de/encoding
Re: URI de/encoding
- Subject: Re: URI de/encoding
- From: Jim Correia <email@hidden>
- Date: Thu, 18 May 2006 13:41:59 -0400
On May 18, 2006, at 1:04 PM, gnat wrote:
I saw that, so i'm not sure what is going on. The XML file I am
loading is "~/Music/iTunes/iTunes Music Library.xml" which gets
loaded into an NSDictionary object. When I get to that point, I
pull the Location object out of a Track and store it in a NSString.
This path looks something like "file://localhost/Users/gnat/Music/
iTunes/iTunes Music/Compilations/Vespertine/01 Hidden%
20Place.mp3" and my target NSString would look like "file://
localhost/Volumes/test/Music/01 Hidden Place.mp3".
See Greg's answer. You are passing a string with a URL as its
contents to NSFileManager. It wants a string with a path as its
contents.
If I pass this to copyPath:, it returns false (and I can't find an
error message anywhere).
See the NSFileManager documentation for -copyPath:toPath:handler:.
It doesn't return a "new style" error via NSError, but you can get
error information and diagnostics through the handler.
Jim
_______________________________________________
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