• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to tell if file wrapper represents package
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to tell if file wrapper represents package
      • From: Shane Stanley <email@hidden>
References: 
 >How to tell if file wrapper represents package (From: Shane Stanley <email@hidden>)

  • Prev by Date: How to tell if file wrapper represents package
  • Next by Date: Re: How to tell if file wrapper represents package
  • Previous by thread: How to tell if file wrapper represents package
  • Next by thread: Re: How to tell if file wrapper represents package
  • Index(es):
    • Date
    • Thread