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: Lee Ann Rucker <email@hidden>
- Date: Sat, 13 Jul 2013 20:30:02 -0700 (PDT)
- Thread-topic: How to tell if file wrapper represents package
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@hidden>
To: "Cocoa-dev" <email@hidden>
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@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
_______________________________________________
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