• 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: Uli Kusterer <email@hidden>
  • Date: Tue, 30 Oct 2007 20:28:44 +0100

On 30.10.2007, at 17:14, email@hidden wrote:
Thanks all. So far I have not been able to reproduce the problem, but what I notice when checking the return status of LSCopyItemInfoForURL is I get a paramErr (-50) for *almost* all files and folders in any directory. (The other functions return no error). I'm not sure how to interpret that. It's obviously not a parameter error since some files return noErr?

No, it obviously *is* a param error. What information are you requesting? It may be that you're requesting 10 things, and it fails doing the 10th one, but the 9 before that were successfully retrieved. So, if you're requesting more things than you actually use, and that 10th thing is, for example, an attribute that only makes sense for files or folders, that could be a reason for it to fail.


 Looking over your code again:

[NSURL URLWithString:path]

Shouldn't that be -fileURLWithString:, if your path variable really contains a path and not a URL?

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

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


  • Follow-Ups:
    • Re: FSCatalogInfo randomness
      • From: email@hidden
References: 
 >FSCatalogInfo randomness (From: email@hidden)
 >Re: FSCatalogInfo randomness (From: Uli Kusterer <email@hidden>)
 >Re: FSCatalogInfo randomness (From: email@hidden)

  • Prev by Date: Re: Any better way to determine if file is executable?
  • Next by Date: Re: 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