Re: UTI
Re: UTI
- Subject: Re: UTI
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 05 Apr 2016 08:16:46 +0700
> On 4 Apr 2016, at 23:48, Quincey Morris <email@hidden> wrote:
>
> On Apr 4, 2016, at 08:30 , Gerriet M. Denkmann <email@hidden> wrote:
>>
>> That is, how to associate a special UTI with the file?
>
> You first need to *define* your own UTI. Add an entry to the Exported UTIs section of the Info pane of the OS X app target in Xcode. For the UTI identifier, enter a unique name using reverse-DNS format, similar to your app’s bundle ID. You’ll also want a description (shows in Finder Info windows), an extension, an icon, and specify conformance to public.data (assuming it’s a pure data file, not a package).
Done this. Finder recognises my file.
>
> If the app is document-based, you’ll also want to create (or modify) an entry in the Document Types, so that you can save in this format.
Not done. The exporting OS X app has no interest to read this file. It is purely for export.
>
> If the iOS app is document-based, you’ll do the same thing (Exported UTI and Document Type that uses it) in that app target.
The importing iOS app has both exported and imported UTI defined (not sure what is really needed).
But when the Document Types is only “my.private.uti”, then I am not asked to open in which app (good) but no data is received (bad).
If Document Types is only “public.data”, I get several apps to choose from. Choosing my app, the data is delivered.
The magic is to have 2 Document Types: “my.private.uti” + “public.data”. Now on receiving the data I get not asked to choose an app (as there is only one: mine) and the data arrives safely and is processed.
Bit confusing. But seems to be working now.
Thanks for your help!
Kind regards,
Gerriet.
_______________________________________________
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: UTI
- From: Quincey Morris <email@hidden>
References: | |
| >UTI (From: "Gerriet M. Denkmann" <email@hidden>) |
| >Re: UTI (From: Quincey Morris <email@hidden>) |