• 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: NSURL getResourceValue fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURL getResourceValue fails


  • Subject: Re: NSURL getResourceValue fails
  • From: Steve Gehrman <email@hidden>
  • Date: Wed, 13 Oct 2010 14:28:06 -0700


That URL is what I get back from:

    CFURLRef cfURL = CFURLCreateFromFSRef(kCFAllocatorDefault, &_ref);

and

NSFileManager contentsOfDirectoryAtURL

and the problem doesn't happen on a normal hard disk and most servers work fine, just this one ftp volume mounted.

-steve

On Oct 13, 2010, at 12:07 PM, Dominic Giampaolo wrote:

URL: file://localhost/Volumes/ftp.ftpwt.com/matéo/

The problem is that you've got a pre-composed utf-8
filename instead of decomposed utf-8.

When you build a string you need do it using the
CFStringCreateWithFileSystemRepresentation() and/or
make sure you've converted your CF/NSString to
FileSystemRepresenation, _not_ regular old utf-8.



--dominic


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >File Corruption copying to a DMG (From: Steve Gehrman <email@hidden>)
 >Re: File Corruption copying to a DMG (From: Eric Tamura <email@hidden>)
 >Re: File Corruption copying to a DMG (From: Steve Gehrman <email@hidden>)
 >Re: File Corruption copying to a DMG (From: Dave Camp <email@hidden>)
 >Re: File Corruption copying to a DMG (From: Steve Gehrman <email@hidden>)
 >NSURL getResourceValue fails (From: Steve Gehrman <email@hidden>)

  • Prev by Date: NSURL getResourceValue fails
  • Next by Date: Re: NSURL getResourceValue fails
  • Previous by thread: NSURL getResourceValue fails
  • Next by thread: Re: NSURL getResourceValue fails
  • Index(es):
    • Date
    • Thread