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
0 answers

Custom file type is not showing "Open With"

I might be going insane, I followed so many tutorials and still my custom file type is not able to be opened within my app - Here is my custom UTType extension: extension UTType { static let reminderList: UTType = UTType(exportedAs:…
Brejuro
  • 3,421
  • 8
  • 34
  • 61
0
votes
0 answers

AirDrop - Custom file app not installed (for receiver)

After .plist UTI configuration for sharing a custom object, The receiver gets a message: "the sender would like to share a file that requires an app from the App Store" I can guess I missing something related to bundle identifier, but without…
Ofir Malachi
  • 1,145
  • 14
  • 20
0
votes
1 answer

How do you create a UTType for System Declared Uniform Type Identifiers for folder?

I see all kinds of examples for using a file or an extension but I am trying to call let imag = NSWorkspace.shared.icon(for: <#T##UTType#>) and I don't see any init method in UUType that takes a identifier e.g. folder.
tgunr
  • 1,540
  • 17
  • 31
0
votes
0 answers

Importing '.db' files using UIDocumentPickerViewController

I am trying to import .db files using UIDocumentPickerViewController. Only need to show files with db extension (eg: sample.db) in document picker. There is an option to provide document type as Uniform Type Identifiers, but there is no UTIs found…
0
votes
0 answers

Trying to register my Xamarin.iOS app to launch when custom document extension is opened or tapped

Trying to achieve the same functionality as an Excel page that is shared or a Word doc that is shared opens the Excel or Word app. I have a document with a custom extension .DLMSFT and .dlmsft. They are both registered in my app's Document type,…
0
votes
0 answers

SwiftUI macOS add costum file format (UTI)

I have a "normal" swiftUI macOS project, and I need to read some "custom" files like data.dat and data.DCA. How do I add these extensions to my Xcode project? At the moment I use the following code to read the data, but for non standard file…
DoTryCatch
  • 1,052
  • 6
  • 17
0
votes
1 answer

Cannot add a custom protocol to an application on the Mac neither with duti nor with plist

I am not experienced much with Mac so any help would be appreciated. First tried to ask here How to map a custom protocol to an application on the Mac? Trying to add my custom protocol with the help of duti run in the post-install script of the…
Maksym
  • 353
  • 1
  • 5
  • 14
0
votes
1 answer

"com.apple" UTI in custom file format

I have a document-based app with a custom file format, the UTIs and such set up as so: CFBundleDocumentTypes CFBundleTypeExtensions extension
spudwaffle
  • 2,905
  • 1
  • 22
  • 29
0
votes
1 answer

Swift Scene Delegate doesn't run code on first launch

I have a code which runs in Scene Delegate when opening the app using an UTI import File. Code works fine but the app has to be running and view controllers loaded for it to be executed, what can I do so the code is also ran when the app starts by…
user13891746
0
votes
1 answer

When working with Apple definition of UTIs, what is different between "public.movie" and "public.video"?

I am importing movies using NSOpenPanel. You can set the allowedFileTypes to either "public.movie" and "public.video" UTI. When you do this, you can select a movie file on the desktop or one stored in Photos or TV app (library). So, what is the…
Steve Sheets
  • 447
  • 2
  • 10
0
votes
0 answers

How can I find custom UTIs App support in iOS?

I'm developing a custom UTI like "com.xyz". All the apps supporting this UTI may be shown in the UIActivityViewController. Code snippet: let extensionItem = NSExtensionItem() let data = NSItemProvider.init(item: nil, typeIdentifier:…
0
votes
1 answer

Delegate QuickLook preview generation to other QLPlugin

I'm developing a QuickLook Preview Plugin for macOS. I'm trying to generate a preview for remote files (osxfuse Virtual File System) and thus I have registered my QLPreview plugin as public.jpeg extension. Now, macOS asks my QLPreview Plugin for…
mixtly87
  • 1,675
  • 15
  • 32
0
votes
1 answer

Importing Documents from iMessage into App - Deleting temp files placed in "Inbox"

I have defined a UTI for a custom document format. I can export files from my app and append them to text messages, email, etc. I can import the files into my app by tapping on the document icon in iMessage. By tapping on the document icon, I…
Diskprotek
  • 601
  • 2
  • 7
  • 13
0
votes
1 answer

How to use UTIs to make a new file type?

I have been working on making an application for editing game plugins for a game I made. I needed the files it saves to have a custom format for obvious reasons. Unfortunately, I cannot figure out how to give the file a custom icon. I did some…
Justin
  • 2,122
  • 3
  • 27
  • 47
0
votes
1 answer

Importing document to app's Document Browser using DocumentBrowserViewController

I've declared a custom export UTI type in a simple Document Based iOS app. I'm now trying to provide the capability to import files of the same type from Mail to the app. When long-pressing the document icon in the message, I'm given the option to…
jacob_g
  • 674
  • 8
  • 21