• 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: Correct way to tell if a path is to a .bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correct way to tell if a path is to a .bundle?


  • Subject: Re: Correct way to tell if a path is to a .bundle?
  • From: Mike Abdullah <email@hidden>
  • Date: Fri, 25 Sep 2009 10:25:30 +0100

I would read up on UTIs. Get the type of each file and see if it conforms to what you require.

I have what I hope is a reasonably informative post here:
http://www.mikeabdullah.net/utis_diagram/

Note how there is a com.apple.plugin type. If you're using a custom format for your plug-ins (and you should), make your app declare a com.foo.app.plugin type for them, which conforms to com.apple.plugin.

On 25 Sep 2009, at 02:41, Rick Mann wrote:

I'm scanning a directory for plugins for my app. Given a path, what's the right way to tell if it's a path to a bundle?

TIA
--
Rick

_______________________________________________

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: Correct way to tell if a path is to a .bundle?
      • From: Rick Mann <email@hidden>
References: 
 >Correct way to tell if a path is to a .bundle? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: NSTableView Drag & Drop as a string
  • Next by Date: Re: Subview drawn with reverted order
  • Previous by thread: Re: Correct way to tell if a path is to a .bundle?
  • Next by thread: Re: Correct way to tell if a path is to a .bundle?
  • Index(es):
    • Date
    • Thread