Questions tagged [uti]

A 'Uniform Type Identifier' (UTI) is a string value used to identify abstract and specific types of item. It uses a reverse-DNS syntax, and is used extensively by Apple for determining types of data files. UTIs exist in an inheritance-based structure, allowing data types to be organised hierarchically. Apple maintains a list of public UTIs, and allows the creation of private, or 'third-party' UTIs.

A 'Uniform Type Identifier' (UTI) is a string value used to identify abstract and specific types of item. It uses a reverse-DNS syntax, and is used extensively by Apple for determining types of data files.

UTIs exist in an inheritance-based structure, allowing data types to be organised hierarchically, and referenced as a more abstract type (e.g. public.image) or more specifically (e.g. public.jpeg).

Apple maintains a list of public UTIs, and allows the creation of private, or 'third-party' UTIs.

217 questions
56
votes
1 answer

Document Types vs. Exported and Imported UTIs

Can anyone explain to me the difference between Document Types, Exported UTIs and Imported UTIs in Xcode 5.1? I want to be able to have my app automatically detect file type based on file extension. Which of these three would I need to implement in…
rolling_codes
  • 15,174
  • 22
  • 76
  • 112
34
votes
3 answers

Why is my iOS app not showing up in other apps' "Open in" dialog?

I am trying to implement the registering process that allows my iOS app to show up in the "Open in" list of other applications (as described in Apple's Document Interaction Programming Topics). I want my app to be able to handle audio from any app…
user577537
22
votes
2 answers

Getting an Uniform Type Identifier for a given extension

I'm trying to find some way in Cocoa to translate from file extensions to Uniform Type Identifiers. That is, I want to find some way of doing this: ".jpg" => "public.jpeg" ".html" => "public.html" ".ttf"=> "public.truetype-font" I've searched on…
Marco Aurélio
  • 2,463
  • 1
  • 21
  • 21
21
votes
2 answers

MFMessageComposeViewController iOS7 addAttachmentData:typeIdentifier:filename: not working

I want to attach an image to a MMS, on iOS7. I wrote following code: MFMessageComposeViewController *messageController = [[MFMessageComposeViewController alloc] init]; messageController.messageComposeDelegate = self; NSData *imgData =…
Beny Boariu
  • 736
  • 2
  • 11
  • 26
21
votes
1 answer

what is the uniform type identifier for docx file

Read the document of Developer Library, the identifier for doc is "com.microsoft.word.doc". But what is the identifier for docx??
alexqinbj
  • 1,091
  • 3
  • 13
  • 27
20
votes
0 answers

Custom UTI does not work for iMessage in iOS 10

I defined and used a custom UTI type for my iOS app for iOS 9. Now, after using XCode 8 and iOS 10, I cannot "open" the file, if it is sent via iMessage. If I tap on the icon, nothing happens, although the correct icon is displayed. If it is sent…
Akar
  • 203
  • 2
  • 7
19
votes
2 answers

What are UTImportedTypeDeclarations and UTExportedTypeDeclarations used for on iOS?

Am I facing a typo here or do really both variations exist on iOS: UTImportedTypeDeclarations UTExportedTypeDeclarations Both return some results on Google, however the latter one returns twice as many hits. What are these plist keys used for? And…
Krumelur
  • 32,180
  • 27
  • 124
  • 263
18
votes
2 answers

Content type/UTI to open CSV in app

How can I write the CFBundleDocumentTypes property of my .plist file, to allow the app to be displayed in the "Open in..." dialog in the other applications? That's mine, but it doesn't work CFBundleDocumentTypes
albianto
  • 4,092
  • 2
  • 36
  • 54
14
votes
1 answer

What are "Imported UTIs" in Xcode 4?

In Xcode 4 there are lists for "document types", "imported UTIs" and "exported UTIs" in project info. I know what document types are, but what are the imported/exported UTIs for? Do I need to declare every document type as a imported/exported UTI as…
Constantino Tsarouhas
  • 6,846
  • 6
  • 43
  • 54
14
votes
1 answer

How to find file UTI for file, withouth pathExtension, in a path in Swift

I've been trying to convert this code which I had from this example (in Objective-c) with no luck. String *path; // contains the file path // Get the UTI from the file's extension: CFStringRef pathExtension = (__bridge_retained…
Mickey Mouse
  • 1,731
  • 3
  • 24
  • 40
13
votes
2 answers

Specifying app name for iCloud "Manage Storage" list

Where does iCloud source the app name that it displays in the iCloud preferences? iOS: Settings.app > iCloud > Storage & Backup > Manage Store > Documents & Data OSX: System Preferences > iCloud > Manage ... I know that iCloud will list an app as…
Jaysen Marais
  • 3,956
  • 28
  • 44
13
votes
3 answers

How do i associate excel file type (xlsx) with iPhone application

Hi i have managed to open .xls files form mail app by adding document type to the project build and set the Types field to "com.microsoft.excel.xls" (see screen shot). I want to do the same with xlsx files but can't do it. I tried to add…
Mahmoud Adam
  • 5,772
  • 5
  • 41
  • 62
13
votes
1 answer

Export UIDocument with custom file package UTI

I'm trying to export my UIDocument subclass with a UIDocumentPickerViewController. The subclass writes data to a FileWrapper and its UTI conforms to com.apple.package. But the presented document picker shows "Documents in iCloud Drive are not…
Benjamin Cheah
  • 1,401
  • 17
  • 23
12
votes
3 answers

List/Search all existing UTIs (Uniform Type Identifiers)

Is it possible to find a list of all existing Uniform Type Identifiers on a system?
pje
  • 21,801
  • 10
  • 54
  • 70
11
votes
2 answers

UIDocument Creation on iOS 11: reader is not permitted to access the URL

Since iOS 11 I have encountered the following error every time I am creating a new document using UIDocument API: [ERROR] Could not get attribute values for item…
HuaTham
  • 7,486
  • 5
  • 31
  • 50
1
2 3
14 15