uti

Are dynamic UTIs stable?

心已入冬 提交于 2021-02-19 04:19:38
问题 I have files of a format that has no declared UTI, so Launch Services has assigned to it a dynamic UTI ( dyn.ah62d4rv4ge81g23wsmw1a5dbte ). I have no control over the UTI of these documents. It also happens that I would like to develop a Quick Look generator for that format, and that Quick Look generators only rely on the document UTI, and will ignore any other kind of document identification present in their property list (such as the creator code and the extension). Is it safe for me to use

Are dynamic UTIs stable?

China☆狼群 提交于 2021-02-19 04:19:17
问题 I have files of a format that has no declared UTI, so Launch Services has assigned to it a dynamic UTI ( dyn.ah62d4rv4ge81g23wsmw1a5dbte ). I have no control over the UTI of these documents. It also happens that I would like to develop a Quick Look generator for that format, and that Quick Look generators only rely on the document UTI, and will ignore any other kind of document identification present in their property list (such as the creator code and the extension). Is it safe for me to use

Are dynamic UTIs stable?

这一生的挚爱 提交于 2021-02-19 04:18:33
问题 I have files of a format that has no declared UTI, so Launch Services has assigned to it a dynamic UTI ( dyn.ah62d4rv4ge81g23wsmw1a5dbte ). I have no control over the UTI of these documents. It also happens that I would like to develop a Quick Look generator for that format, and that Quick Look generators only rely on the document UTI, and will ignore any other kind of document identification present in their property list (such as the creator code and the extension). Is it safe for me to use

What are UTImportedTypeDeclarations and UTExportedTypeDeclarations used for on iOS?

杀马特。学长 韩版系。学妹 提交于 2021-02-17 21:32:53
问题 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 what is the difference to CFBundleDocumentTypes which already seems to do what I think the other two do, namely allow an app to open specific file types? 回答1: UTExportedTypeDeclarations You use UTExportedTypeDeclarations to define your own UTIs that

What are UTImportedTypeDeclarations and UTExportedTypeDeclarations used for on iOS?

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-17 21:32:14
问题 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 what is the difference to CFBundleDocumentTypes which already seems to do what I think the other two do, namely allow an app to open specific file types? 回答1: UTExportedTypeDeclarations You use UTExportedTypeDeclarations to define your own UTIs that

Document Type Icon not showing on custom file MacOS

自古美人都是妖i 提交于 2021-02-08 20:54:12
问题 My application needs to have custom document support, but I did not start out with a Document-template in xcode. I did manage to properly load and save the data by following among other things this tutorial: https://www.brandpending.com/2016/02/21/opening-and-saving-custom-document-types-from-a-swift-cocoa-application/. One problem though, is that my custom icon is not showing on my file! it is still a blank page-icon :(. What Am I doing wrong? Here is my setup: my HSDocument code: -(BOOL

Open attachment from mail using ios 8 app [swift] [duplicate]

不想你离开。 提交于 2020-01-14 06:50:09
问题 This question already has answers here : How do I associate file types with an iPhone application? (4 answers) Closed 4 years ago . In my app, I designed a new encrypted type data as attachment to the mail. When I receive the same type of attachment(filename.filetype) from another user, I want the attachment from mail to open in my app. I went through the action extensions tutorials. But, what is missing is, how can I open that particular type of attachment using my swift app. I get the

Is `NSIsRelatedItemType` available on iOS?

这一生的挚爱 提交于 2020-01-06 04:45:27
问题 The App Sandbox Guide teaches us to use a key NSIsRelatedItemType in the Info.plist file to designate "Related Items", such as sidecar files, that the app should be able to access (given the proper use of NSFileCoordinator, which works great on macOS). However, the Information Property List Key Reference for CFBundleDocumentTypes does not have any documentation for NSIsRelatedItemType . Other keys, which are documented, are variously available on macOS and iOS. Is NSIsRelatedItemType

Xcode 4 Document Types and Exported UTIs

孤人 提交于 2020-01-05 09:34:56
问题 I have an other problem with Xcode 4. I really like the new IDE but there are a few things I didn't get to work yet. One thing is to register Document Types with Xcode 4. I tried it with the old way through the plist file, but it didn't work. (Means I couldn't open a file with my app) But I don't now how to set it up with the interface of Xcode 4. My latest try looks like this: (Copied the entry made from Xcode in the info.plist) <key>UTExportedTypeDeclarations</key> <array> <dict> <key

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

寵の児 提交于 2020-01-01 02:32:09
问题 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 "com.microsoft.excel.xlsx" but it didn't work 回答1: I solved that by defining custom UTI as follows. Try to add these definitions into your info.plist. It works as expected. <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeDescription</key>