• 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: Jens Alfke <email@hidden>
  • Date: Mon, 2 Jun 2008 07:46:18 -0700


On 2 Jun '08, at 7:30 AM, Daniel Dalquen wrote:

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?

I think it's a combination of (a) does the directory look like a bundle, i.e. contains a "Contents" directory; and (b) does the directory name's extension match that of a bundle-based type registered with Launch Services. (This is why sometimes if you see a bundle-based document for an app you don't have, it looks like a folder.)


The LaunchServices documentation might explain in detail.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: NSXMLDocument and relative DTD?
  • Next by Date: Re: How does NSWorkspace -isFilePackageAtPath: work?
  • Previous by thread: How does NSWorkspace -isFilePackageAtPath: work?
  • Next by thread: Re: How does NSWorkspace -isFilePackageAtPath: work?
  • Index(es):
    • Date
    • Thread