• 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: How does NSWorkspace -isFilePackageAtPath: work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does NSWorkspace -isFilePackageAtPath: work?


  • Subject: Re: How does NSWorkspace -isFilePackageAtPath: work?
  • From: Milen Dzhumerov <email@hidden>
  • Date: Mon, 2 Jun 2008 16:03:35 +0100

Hi Daniel,

I believe NSWorkspace creates a CFURL from the path you're given and then uses LSCopyItemInfoForURL requesting kLSRequestAllFlags.

Then you can use the LSItemInfoRecord provided which has a LSItemInfoFlags which in turn has bit flags for the following (and more as well) kLSItemInfoIsPackage, kLSItemInfoIsApplication and kLSItemInfoIsContainer.

Regards,
Milen

On 2 Jun 2008, at 15:30, Daniel Dalquen wrote:

Hi all,

I am working on client for online storage and the app should not download any files unless the user tells it to. Still it should recognize bundles and display them as files instead of directories.

Does anybody know how the NSWorkspace method -isFilePackageAtPath: determines whether the file at the path is a bundle or not? Does it just look at the directory structure only or does it read some files? Is there a way to find out?

Thanks,
Daniel
_______________________________________________

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

_______________________________________________

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: 
 >How does NSWorkspace -isFilePackageAtPath: work? (From: Daniel Dalquen <email@hidden>)

  • Prev by Date: Re: How does NSWorkspace -isFilePackageAtPath: work?
  • Next by Date: core data: awakeFromFetch, awakeFromInsert, didTurnIntoFault
  • Previous by thread: Re: How does NSWorkspace -isFilePackageAtPath: work?
  • Next by thread: core data: awakeFromFetch, awakeFromInsert, didTurnIntoFault
  • Index(es):
    • Date
    • Thread