On 15/07/2013, at 2:59 AM, Kyle Sluder <k...@ksluder.com> 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 <sstan...@myriad-com.com.au>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to