mirror of
https://github.com/zhigang1992/iOS-6-Advanced-Cookbook.git
synced 2026-01-12 22:48:06 +08:00
29 lines
854 B
Objective-C
29 lines
854 B
Objective-C
/*
|
|
Erica Sadun, http://ericasadun.com
|
|
iPhone Developer's Cookbook, 5.x Edition
|
|
BSD License, Use at your own risk
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <MobileCoreServices/MobileCoreServices.h>
|
|
|
|
NSString *uuid();
|
|
|
|
NSString *preferredExtensionForUTI(NSString *aUTI);
|
|
NSString *preferredMimeTypeForUTI(NSString *aUTI);
|
|
NSString *preferredUTIForExtension(NSString *ext);
|
|
NSString *preferredUTIForMIMEType(NSString *mime);
|
|
|
|
NSArray *allExtensions(NSString *aUTI);
|
|
NSArray *allMIMETypes(NSString *aUTI);
|
|
|
|
NSDictionary *utiDictionary(NSString *aUTI);
|
|
NSArray *conformanceArray(NSString *aUTI);
|
|
|
|
NSArray *allUTIsForExtension(NSString *ext);
|
|
|
|
BOOL pathPointsToLikelyUTIMatch(NSString *path, CFStringRef theUTI);
|
|
|
|
// You can add any number of these as desired.
|
|
BOOL pathPointsToLikelyImage(NSString *path);
|
|
BOOL pathPointsToLikelyAudio(NSString *path); |