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
0
votes
1 answer

How do I export text from iOS Notes app to my app?

I know this is possible and is something many big apps do, but I can't figure out among UTIs, extensions, UIActivityTypes, etc. which spell I need to use for this in particular. I'm trying to add my app to the list of apps that appear when you hit…
KRA2008
  • 121
  • 1
  • 11
0
votes
1 answer

How can I make my app available as the default browser in iOS?

If I disable Safari in the Restriction settings on iOS and I have iCab Mobile downloaded then all links will open in iCab. How do I register my app to handle links when Safari is disabled?
Steve Moser
  • 7,647
  • 5
  • 55
  • 94
0
votes
1 answer

Document greyed out in document browser

I tried to build an app based on the Document based app template. I am trying to get it to open markdown files. I got it to create the files and show up in the share sheet when viewing the file in the Files app. However in the Document Browser in…
Hans
  • 2,354
  • 3
  • 25
  • 35
0
votes
0 answers

Choose UIImage via Uniform Type Identifiers

In my iOS app I have to list documents in a UITableView and I want to associate them an UIImage. To choose image I have to follow this scheme IMAGE1 - file with extension .doc, .docx, .ott, .odt, .dot IMAGE2 - file with extension .pdf IMAGE3 - file…
Giorgio
  • 1,973
  • 4
  • 36
  • 51
0
votes
1 answer

How can I allow user to select photo from iOS Photos app and open in my application? And I don't want to use SHARE EXTENSION

How can I allow user to select photo from iOS Photos app and share/open in my application? And I don't want to use SHARE EXTENSION. Can anyone help me to implement it using "Uniform Type Identifiers" ? My plist source code snippet: …
Rameez
  • 312
  • 4
  • 20
0
votes
1 answer

iOS open pdf use my own app setting does not work

I am developing an iOS app for pdf view, I want that when user open an email(I use gmail for test) attachment pdf file then there will be a menu like "open in" include my app, I follow this guide ios adding a custom type and this is my setting, , I…
newszer
  • 440
  • 1
  • 4
  • 23
0
votes
0 answers

Swift - Open file imported to app

Hi I have an app which uses its own document format (.hvgg). The UTI is declared in the Info.plist (screenshot). Did I do anything wrong there? Because when I use the "Share" menu, it shows "Copy to HvGG" instead of "Import to HvGG" which it says…
user5456558
0
votes
0 answers

Create file with custom document type

I have defined a custom document type containing binary data for my app, with identifier "com.mycompany.gcp", using an Exported UTI. I am using this document type to exchange data with macOS and iOS versions of my app. After much trial and error, it…
jbaraga
  • 656
  • 5
  • 16
0
votes
1 answer

Not able to get .doc file from UIDocumentPickerViewController ios swift

I'm using this code to get document from iCloud in my app. let documentPicker: UIDocumentPickerViewController = UIDocumentPickerViewController(documentTypes: ["public.content","public.data"], in: UIDocumentPickerMode.import) …
Arun K
  • 810
  • 2
  • 12
  • 33
0
votes
1 answer

Xamarin iOS: What are the document types for OpenOffice and Microsoft Office

I have a list of microsoft office mime types and office document. Need to find the UTI type for all of them so i can open document picker which only show those documents. This is my list of the microsoft office I've found, I used them for android,…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
0
votes
0 answers

Register UTI for file extension associated with dynamic UTI

Suppose an NSDocument based application defined an exported file type without specifying a UTI for it, resulting in a dynamic UTI being set by macOS for those files. Simply declaring a UTI in the app doesn’t seem to affect newly written files, the…
user73014
  • 11
  • 5
0
votes
1 answer

A way to get all declared UTIs in Cocoa (Swift/Obj-C)... and/or, determining UTIs defined by App bundles?

This is actually a two-fold question, I guess. On one part, I'd like to know whether there's a neat way to enumerate all declared UTIs on a given system. I know lsregister -dump is an option, given some grep and parsing on my side; however, I'm left…
0
votes
1 answer

files saved as package (with filewrappers) and icloud drive, are they zipped when emailed?

I have an app which uses UIDocument and writes data using filewrappers: public override func contents(forType typeName: String) throws -> Any { print("******writing the contents******") print("**** typeName = \(typeName)") let result…
Jan
  • 1,582
  • 1
  • 13
  • 19
0
votes
2 answers

How To Get A File Type If File Extension is not available

Hey folks I have been stuck into the situation where I wanted to know the File type of few files who has no extension. I know till now that every file is associated with UTI Identifier and Extension. 1. In my case file extension is not available so…
Vikram Sinha
  • 581
  • 1
  • 10
  • 25
0
votes
1 answer

Cannot add icon to registered document type? Is this a bug?

I am trying to add icons to the document type I have defined using Xcode document type option on the project info. See the phrase add icons here? In theory you can drop icons to that area. I have tried png, ico, icns. Nothing. I have tried to add…
Duck
  • 34,902
  • 47
  • 248
  • 470