• 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: Axel Andersson <email@hidden>
  • Date: Tue, 30 Oct 2007 18:19:48 +0100

On Oct 30, 2007, at 17:43 , email@hidden wrote:

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.
No error. Just arbitrary results. I find this very strange.

[snip]

 LSCopyItemInfoForURL((CFURLRef)[NSURL URLWithString:path],
kLSRequestAllFlags, &itemInfo);

Perhaps you should try this with [NSURL fileURLWithPath:path] instead of +URLWithString:, that could be the reason it thinks you have invalid parameters.


-- Axel

_______________________________________________

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: "Cocoa Programming for Mac OS X" for Leopard
  • Next by Date: Re: Determine if App is launched thru alias?
  • Previous by thread: Re: FSCatalogInfo randomness
  • Next by thread: Re: FSCatalogInfo randomness
  • Index(es):
    • Date
    • Thread