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" <sstan...@myriad-com.com.au> To: "Cocoa-dev" <cocoa-dev@lists.apple.com> 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 <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/lrucker%40vmware.com This email sent to lruc...@vmware.com _______________________________________________ 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