uti

List/Search all existing UTIs (Uniform Type Identifiers)

久未见 提交于 2019-11-29 06:56:46
Is it possible to find a list of all existing Uniform Type Identifiers on a system? How about /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump Even better: A Graph of all Universal Type Identifiers - Kevin Ballard's Blog You can build your own graph with UTIsExplorer https://github.com/nst/UTIsExplorer The project includes a graph of all UTIs on my machine: http://seriot.ch/resources/utis_graph/utis_graph.pdf 来源: https://stackoverflow.com/questions/12554187/list-search-all-existing-utis-uniform-type-identifiers

What are “Imported UTIs” in Xcode 4?

爱⌒轻易说出口 提交于 2019-11-29 02:33:13
问题 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 well? I use UTIs. Thanks. 回答1: Your application declares the UTIs it uses as imported or exported UTIs. Exported UTIs are the UTIs for which your application is authoritative. That is, document types which you own and define. Imported UTIs are

MFMessageComposeViewController iOS7 addAttachmentData:typeIdentifier:filename: not working

此生再无相见时 提交于 2019-11-28 05:02:06
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 = [NSData dataWithContentsOfFile:@"blablabla"]; BOOL didAttachImage = [messageController addAttachmentData:imgData typeIdentifier:@"public.data" filename:@"image"]; if (didAttachImage) { // Present message view controller on screen [self presentViewController:messageController animated:YES completion:nil]; } else { UIAlertView *warningAlert = [[UIAlertView alloc]

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

佐手、 提交于 2019-11-27 10:32:16
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 that will provide a standard audio file format (MP3, AIFF, WAV, etc.). As I understand it, all I should need to do is add the CFBundleDocumentTypes key, with relevant subdata, to my app's Info.plist. This is what I put in (via Xcode 4's Document Types editor): <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeIconFiles</key> <array>

Why is my iOS app not showing up in other apps&#39; “Open in” dialog?

我们两清 提交于 2019-11-26 15:14:11
问题 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 that will provide a standard audio file format (MP3, AIFF, WAV, etc.). As I understand it, all I should need to do is add the CFBundleDocumentTypes key, with relevant subdata, to my app's Info.plist. This is what I put in (via Xcode 4's Document

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

我是研究僧i 提交于 2019-11-26 09:54:53
问题 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 CFStringRef)[path pathExtension]; CFStringRef type = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension, NULL); CFRelease(pathExtension); // The UTI can be converted to a mime type: NSString *mimeType = (__bridge_transfer NSString *