• 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: David Duncan <email@hidden>
  • Date: Tue, 30 Oct 2007 09:58:41 -0700

On Oct 30, 2007, at 9:14 AM, 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?


A paramErr (-50) can generally be interpreted as "Bad Input" in which case it makes sense that you will sometimes get it, and sometimes not.

It is possible, even likely, that in this case when it fails you are passing nil to LSCopyItemInfoForURL() (because the URLWithString might be failing).
--
David Duncan
Apple DTS Quartz and Printing
email@hidden



_______________________________________________

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: [ANN] Using PyObjC on Leopard
  • Next by Date: Re: "Cocoa Programming for Mac OS X" for Leopard
  • Previous by thread: Re: FSCatalogInfo randomness
  • Next by thread: Re: FSCatalogInfo randomness
  • Index(es):
    • Date
    • Thread