• 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: Rosyna <email@hidden>
  • Date: Tue, 30 Oct 2007 10:47:40 -0700

A -50 (paramErr) is also sometimes called "programmers an idiot error" as 90% of the time it occurs it is because the developer passed the wrong parameters to a function or they didn't error-check the results of one function and passed them to another. When dealing with files, this can lead to very bad results.

Always error check in an insanely insane manner when dealing with file APIs. Last thing you'd want is a file creation API to work, but a permissions setting call to fail.

Ack, at 10/30/07, email@hidden said:

So I just had this problem again. A directory was listed as empty, although
it isn't. There were no others errors except LSCopyItemInfoForURL
returned paramErr (-50). But as I said in my previous post, this error is
returned for almost all files, even when the directory contents is listed
properly.

--


Sincerely, Rosyna Keller Technical Support/Carbon troll/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
_______________________________________________

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: email@hidden)

  • Prev by Date: Re: FSCatalogInfo randomness
  • 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