• 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: Detemine Document Types ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detemine Document Types ...


  • Subject: Re: Detemine Document Types ...
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 12 Mar 2009 20:57:00 -0400

On Thu, Mar 12, 2009 at 7:09 AM, Mic Pringle <email@hidden> wrote:
> However, in your example you use the mainbundle of the current
> application. Is it possible to use this technique when the bundle is
> another application ?

Use +[NSBundle bundleWithPath:].

> i.e. the task I'm trying to achieve is when given an application (any
> application on the host system) I'd like to determine what document
> types it's associated with.

Be aware that some apps will use UTIs, and some won't.  Apps can
declare that they own a certain type (UTExportedTypeDeclarations) or
that they can open a type owned by someone else
(UTImportedTypeDeclarations).

--Kyle Sluder
_______________________________________________

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

References: 
 >Detemine Document Types ... (From: Mic Pringle <email@hidden>)
 >Re: Detemine Document Types ... (From: Graham Cox <email@hidden>)
 >Re: Detemine Document Types ... (From: Mic Pringle <email@hidden>)

  • Prev by Date: Re: using QuickLook from an application?
  • Next by Date: Re: NSGradient draws incorrectly in PDF context?
  • Previous by thread: Re: Detemine Document Types ...
  • Next by thread: NSTextFieldCell text color issue in NSTableView with source list highlighting
  • Index(es):
    • Date
    • Thread