• 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: determine if file is package
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: determine if file is package


  • Subject: Re: determine if file is package
  • From: Ryan Britton <email@hidden>
  • Date: Sun, 21 May 2006 08:46:44 -0700

LaunchServices can tell you whether or not a specific path is a package. Take a look at the docs for LSCopyItemInfoForRef. One of the flags that it can return will indicate package status.

http://developer.apple.com/documentation/Carbon/Reference/ LaunchServicesReference/Reference/reference.html#//apple_ref/c/func/ LSCopyItemInfoForRef


On May 21, 2006, at 7:51 AM, Diederik Hoogenboom wrote:

I was wondering if there is an other way of finding out besides [[NSWorkspace sharedWorkspace] isFilePackageAtPath:aPath] if a file is a package or not?
The reason I ask is that -isFilePackageAtPath: is really slow.


Diederik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: determine if file is package
      • From: Colin Howarth <email@hidden>
References: 
 >determine if file is package (From: Diederik Hoogenboom <email@hidden>)

  • Prev by Date: Re: Spotlight word-based search
  • Next by Date: Re: Stop NSTableColumn from being dragged, and from changing position (like iTunes)
  • Previous by thread: determine if file is package
  • Next by thread: Re: determine if file is package
  • Index(es):
    • Date
    • Thread