Re: Detemine Document Types ...
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