• 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 to tell if file wrapper represents package
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to tell if file wrapper represents package


  • Subject: Re: How to tell if file wrapper represents package
  • From: Shane Stanley <email@hidden>
  • Date: Mon, 15 Jul 2013 09:13:35 +1000

On 15/07/2013, at 2:59 AM, Kyle Sluder <email@hidden> wrote:

> This sounds like the correct approach to me. Grab the file extension, call UTTypeCreatePreferredIdentifierForTag to convert it to a UTI, then call UTTypeConformsTo (or -[NSWorkspace type:conformsToType:]) to determine if the type confirms to kUTTypePackage.

Thanks -- that does the job nicely.

I'm curious about how I'd use Mike's Plan B, working back from NSFileSystemFileNumber, though.

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


_______________________________________________

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 to tell if file wrapper represents package (From: Shane Stanley <email@hidden>)
 >Re: How to tell if file wrapper represents package (From: Lee Ann Rucker <email@hidden>)
 >Re: How to tell if file wrapper represents package (From: Shane Stanley <email@hidden>)
 >Re: How to tell if file wrapper represents package (From: Mike Abdullah <email@hidden>)
 >Re: How to tell if file wrapper represents package (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: To 'Pinch' or 'Rotate'
  • Next by Date: Re: To 'Pinch' or 'Rotate'
  • Previous by thread: Re: How to tell if file wrapper represents package
  • Next by thread: Use of Instruments.app remedies Core Data memory issue (!?)
  • Index(es):
    • Date
    • Thread