• 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
Re: URI de/encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >URI de/encoding (From: gnat <email@hidden>)
 >Re: URI de/encoding (From: Jim Correia <email@hidden>)
 >Re: URI de/encoding (From: gnat <email@hidden>)

  • Prev by Date: iWork Pages Plugin
  • Next by Date: Re: How do I find out if a process is running if I have the process Name?
  • Previous by thread: Re: URI de/encoding
  • Next by thread: Re: URI de/encoding
  • Index(es):
    • Date
    • Thread