Re: How to tell if file wrapper represents package
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