• 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: FSCatalogInfo randomness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSCatalogInfo randomness


  • Subject: Re: FSCatalogInfo randomness
  • From: email@hidden
  • Date: Tue, 30 Oct 2007 19:04:39 +0100


On 30 Oct 2007, at 18:31, email@hidden wrote:

I replaced URLWithString with CFURLCreateWithFileSystemPath, which
eliminated the paramErr. But I don't see why URLWithString would fail? The
strings are not malformed.

Yes they are:

/Users/You/Somefile is not a valid file URL,

file:///Users/You/Somefile is.

See
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ Classes/NSURL_Class/Reference/Reference.html#//apple_ref/occ/clm/ NSURL/URLWithString:


Matt
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >FSCatalogInfo randomness (From: email@hidden)
 >Re: FSCatalogInfo randomness (From: Uli Kusterer <email@hidden>)
 >Re: FSCatalogInfo randomness (From: email@hidden)
 >Re: FSCatalogInfo randomness (From: David Duncan <email@hidden>)
 >Re: FSCatalogInfo randomness (From: email@hidden)

  • Prev by Date: Re: Determine if App is launched thru alias?
  • Next by Date: Any better way to determine if file is executable?
  • Previous by thread: Re: FSCatalogInfo randomness
  • Next by thread: Re: FSCatalogInfo randomness
  • Index(es):
    • Date
    • Thread