On 15/07/2013, at 2:59 AM, Kyle Sluder <[email protected]> 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 protected]>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to