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
1
vote
1 answer

stringWithContentsOfURL returning all attached files as NSString

Implemented Uniform Type Identifiers and when emailed a single attachment, stringWithContentsOfURL returns an NSString with the contents of the file defined by the NSURL. When selecting a file from an email with a number of files attached,…
RobCroll
  • 2,571
  • 1
  • 26
  • 36
1
vote
2 answers

UTI doesn't seem to be saved properly

I have an app that should try to save Markdown files. This is the relevant portions from my Info.plist: CFBundleTypeExtensions md CFBundleTypeIconFile
Jakub Hampl
  • 39,863
  • 10
  • 77
  • 106
1
vote
2 answers

CFBundleDocumentTypes Not Registering

Right now I am making a document based app for iOS. I am currently trying to register .zip for opening with my app. I have tried apple's example and many other tutorials such as the one here. However, none of them make my app show up in mail.app or…
virindh
  • 3,775
  • 3
  • 24
  • 49
1
vote
1 answer

How to support files with a dynamic type identifier but a specific extension?

I would like my app to support "Open In.." functionality for an existing file type. This file type, however, does not have a UTI. I ran mdls for it in Terminal with the following result: kMDItemContentType =…
anna
  • 2,723
  • 4
  • 28
  • 37
1
vote
1 answer

Retrieve all app bundle identifiers which can open file at given URL

How to retrieve all app bundle IDs which can open file at given URL? Like if file at given URL is .xml I want to get array of all app bundle IDs which can open .xml.
user500
  • 4,519
  • 6
  • 43
  • 56
0
votes
1 answer

ios open pdf in ibooks from DocumentsDirectory

I'm trying to open a pdf I generated and saved in my document directory with other applications like ibook with this code: NSLog(@"Send PDF: %@", _pdfPath); NSURL *url = [NSURL fileURLWithPath:_pdfPath]; docController =…
Jpellat
  • 907
  • 7
  • 29
0
votes
1 answer

OSX: Associate particular folders with the application I'm developing

I need to associate particular folders with my application in order to launch the app by a double-click on the folder, as if it were a bundle folder. Those folders should even have their own icon. I've been able to achieve this by providing the…
Andrea3000
  • 1,018
  • 1
  • 11
  • 26
0
votes
1 answer

Open movie app with precise video on iOS

I would like to open the iPad movie player from my app to play a video. The video will already be on the device, and the app is destined to ad-hoc distribution on pre-configured device, thus we can say the video will always be here. My problem is…
Jaffa
  • 12,442
  • 4
  • 49
  • 101
0
votes
1 answer

How can I create an image to be shown for a custom exported document type for an iOS App?

I'm exporting a custom document type in my app by adding UTExportTypeDeclarations and CFBundleDocumentTypes to info.plist. How can I get an custom image associated with my exported document type? When I export a document type that's based on a…
clearlight
  • 12,255
  • 11
  • 57
  • 75
0
votes
0 answers

Any way make Messages on iOS open a share sheet for non "public.text" conformant UTI type if contents are text?

UPDATE: Playing with this more this looks like probably a bug in Messages. Files app and Mail app bring up the same viewer, but if it is a non-text UTI type, messages won't bring up the viewer, but Files will bring up a viewer that has the name of…
clearlight
  • 12,255
  • 11
  • 57
  • 75
0
votes
1 answer

What (else) do I need to do to open my iOS app by tapping attachment?

For my iOS 16.x app, I define a custom UTI following in my Info.plist. It isn't performing as expected. For example, I tap file links or attachments that have the new extension, but I am simply shown a view of the (simple JSON) contents. Strangely,…
clearlight
  • 12,255
  • 11
  • 57
  • 75
0
votes
1 answer

What is an iOS 16-compatible way of turning a list of uniform type indicator strings (e.g., ["public.text", "public.image"]) into a list of UTType?

My app has a list of supported uniform type indicator (UTI) strings: public static let supportedUTIs = ["public.text", "public.image", "com.adobe.pdf", "public.comma-separated-values-text", "com.microsoft.word.doc",…
0
votes
1 answer

Documents/Inbox folder for opening file from another App

I registered my app to associate some filetypes. so when the file comes in the mail attachment, I use my app to open the file. My app will automatically create a "Inbox" folder inside my Documents folder, and save the file in "Inbox". This Inbox is…
Cullen SUN
  • 3,517
  • 3
  • 32
  • 33
0
votes
1 answer

How can I make custom icons appear for document types associated with my macOS app in the Finder?

I have successfully created UTIs and the Finder is able to identify that the files belong to my application and that they are specific types (such as ITC Data File). However, I am unable to make the OS use the custom icons I have specified in my…
0
votes
0 answers

Is scene(_:openURLContexts:) called when app is launched by an airdropped file?

In the old versions of my app, the scene(_:openURLContexts:) method is always called in these two cases: The app isn't running. Then It's launched by an airdropped file. The app is already running. Then a file is airdropped. I created a separate…
rayx
  • 1,329
  • 10
  • 23