Re: UTI
Re: UTI
- Subject: Re: UTI
- From: Quincey Morris <email@hidden>
- Date: Mon, 04 Apr 2016 20:19:57 -0700
- Feedback-id: 167118m:167118agrif8a:167118sOtYiEjF6O:SMTPCORP
On Apr 4, 2016, at 18:16 , Gerriet M. Denkmann <email@hidden> wrote:
>
> 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.
This sounds wrong.
First, do NOT define the same UTI identifier in both the Imported UTIs and Exported UTIs section of the plist. Note that “import” and “export” here don’t refer to the documents or data, but to the UTI itself. An exported UTI is one that the app owns/defines, and the Exported UTI definition *is* the definition. An imported UTI is one that’s owned/defined by another app, but this app *uses*, and provides details in case the owner is not installed. In your case, you want to export the definition, because your app owns the custom UTI. However, I doubt that this in itself is causing any strange behavior, assuming the import and export definition are identical.
Second, the idea that your custom UTI can trigger your iOS app, but not supply it with data is bizarre. It actually sounds like there is something wrong with one of your definitions, as if conformance to public.data isn’t specified in the Exported UTI on iOS.
Are you following all the guidelines laid out in https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.html under heading "Supporting AirDrop” and subheading "Receiving Files and Data Sent to Your App”?
_______________________________________________
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: "Gerriet M. Denkmann" <email@hidden>
References: | |
| >UTI (From: "Gerriet M. Denkmann" <email@hidden>) |
| >Re: UTI (From: Quincey Morris <email@hidden>) |
| >Re: UTI (From: "Gerriet M. Denkmann" <email@hidden>) |