Haven't tried it, but [NSWorkspace isFilePackageAtPath:] looks like what you 
want. If that's not sufficient, there are other things in NSWorkspace that test 
files.

----- Original Message -----
From: "Shane Stanley" <[email protected]>
To: "Cocoa-dev" <[email protected]>
Sent: Saturday, July 13, 2013 7:53:38 PM
Subject: How to tell if file wrapper represents package

I'm populating an outline view from an array of file wrappers. Is there some 
way I can tell that a wrapper represents a bundle rather than a plain 
directory? I'm assuming there's some way I can check via the wrapper's 
preferredFilename's file extension, but I can't see how.

-- 
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/lrucker%40vmware.com

This email sent to [email protected]
_______________________________________________

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