this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

CoreServices: move constants into LaunchServices

CoreServices itself doesn't define any constants other than its
version number and string. Plus, some of the values we had were just
flat-out wrong, while the same constants in LaunchServices were correct
(but unused since they were being shadowed by CoreServices).

+19 -57
+4 -56
src/frameworks/CoreServices/constants.m
··· 1 1 #include <CoreFoundation/CoreFoundation.h> 2 2 3 - const CFStringRef kUTTagClassDeviceModelCode = CFSTR("com.apple.device-model-code"); 4 - const CFStringRef kUTTagClassFilenameExtension = CFSTR("public.filename-extension"); 5 - const CFStringRef kUTTagClassMIMEType = CFSTR("public.mime-type"); 6 - const CFStringRef kUTTypeDevice = CFSTR("public.device"); 7 - const CFStringRef kUTTypeData = CFSTR("public.data"); 8 - const CFStringRef kUTTypeGIF = CFSTR("com.compuserve.gif"); 9 - const CFStringRef kUTTypeJPEG = CFSTR("public.jpeg"); 10 - const CFStringRef kUTTypePNG = CFSTR("kUTTypePNG"); 11 - const CFStringRef kUTTypePlainText = CFSTR("public.plain-text"); 12 - const CFStringRef kUTTypeTIFF = CFSTR("public.tiff"); 13 - const CFStringRef kUTTypeXMLPropertyList = CFSTR("com.apple.xml-property-list"); 14 - const CFStringRef kUTTypeZipArchive = CFSTR("public.zip-archive"); 15 - const CFStringRef kUTTypeAppleICNS = CFSTR("com.apple.icns"); 16 - const CFStringRef kUTTypeFileURL = CFSTR("public.file-url"); 17 - const CFStringRef kUTTypeCHeader = CFSTR("public.c-header"); 18 - const CFStringRef kUTTypeCPlusPlusHeader = CFSTR("public.c-plus-plus-header"); 19 - const CFStringRef kUTTypeCPlusPlusSource = CFSTR("public.c-plus-plus-source"); 20 - const CFStringRef kUTTypeCSource = CFSTR("public.c-source"); 21 - const CFStringRef kUTTypeFolder = CFSTR("public.folder"); 22 - const CFStringRef kUTTypeObjectiveCPlusPlusSource = CFSTR("public.objective-c-plus-plus-source"); 23 - const CFStringRef kUTTypeObjectiveCSource = CFSTR("public.objective-c-source"); 24 - const CFStringRef kUTTypeTagSpecificationKey = CFSTR("UTTypeTagSpecification"); 25 - const CFStringRef kUTTypePDF = CFSTR("com.adobe.pdf"); 26 - const CFStringRef kUTTypeSourceCode = CFSTR("public.source-code"); 27 - const CFStringRef kUTTypeSwiftSource = CFSTR("public.swift-source"); 28 - const CFStringRef kUTTypeText = CFSTR("public.text"); 29 - const CFStringRef kUTTypeFramework = CFSTR("com.apple.framework"); 30 - const CFStringRef kUTTypeImage = CFSTR("public.image"); 31 - const CFStringRef kUTTypeUTF8PlainText = CFSTR("public.utf8-plain-text"); 32 - const CFStringRef kUTTypeApplication = CFSTR("com.apple.application"); 33 - const CFStringRef kUTTypeBundle = CFSTR("com.apple.bundle"); 34 - const CFStringRef kUTTypeHTML = CFSTR("public.html"); 35 - const CFStringRef kUTTypePICT = CFSTR("com.apple.pict"); 36 - const CFStringRef kUTTypeUTF16ExternalPlainText = CFSTR("public.utf16-external-plain-text"); 37 - const CFStringRef kUTTypeUTF16PlainText = CFSTR("public.utf16-plain-text"); 38 - 39 - /* re-exported from LaunchServices */ 40 - const CFStringRef _kLSPIDKey = CFSTR("pid"); 41 - const CFStringRef _kLSASNKey = CFSTR("LSASN"); 42 - const CFStringRef _kLSApplicationTypeKey = CFSTR("ApplicationType"); 43 - const CFStringRef _kLSApplicationUIElementTypeKey = CFSTR("UIElement"); 44 - const CFStringRef _kLSPreviousASNKey = CFSTR("LSOtherASN"); 45 - const CFStringRef _kLSBundlePathDeviceIDKey = CFSTR("LSBundlePathDeviceIDKey"); 46 - const CFStringRef _kLSBundlePathINodeKey = CFSTR("LSBundlePatINodeKey"); 47 - 48 - const CFStringRef kLSQuarantineAgentBundleIdentifierKey = CFSTR("LSQuarantineAgentBundleIdentifier"); 49 - const CFStringRef kLSQuarantineAgentNameKey = CFSTR("LSQuarantineAgentName"); 50 - const CFStringRef kLSQuarantineDataURLKey = CFSTR("LSQuarantineDataURL"); 51 - const CFStringRef kLSQuarantineOriginURLKey = CFSTR("LSQuarantineOriginURL"); 52 - const CFStringRef kLSQuarantineTimeStampKey = CFSTR("LSQuarantineTimeStamp"); 53 - const CFStringRef kLSQuarantineTypeKey = CFSTR("LSQuarantineType"); 54 - const CFStringRef kLSQuarantineTypeOtherDownload = CFSTR("LSQuarantineTypeOtherDownload"); 3 + // unsure 4 + const double CoreServicesVersionNumber = 1239; 5 + const char* const CoreServicesVersionString = "@(#)PROGRAM:CoreServices PROJECT:CoreServices-1239\n"; 55 6 56 - const CFStringRef kMDItemDisplayName = CFSTR("kMDItemDisplayName"); 57 - const CFStringRef kMDItemLastUsedDate = CFSTR("kMDItemLastUsedDate"); 58 - const CFStringRef kMDItemFinderComment = CFSTR("kMDItemFinderComment"); 59 - 7 + // this probably shouldn't be here 60 8 const CFStringRef kFSOperationBytesCompleteKey = CFSTR("kFSOperationBytesDoneKey"); 61 9 const CFStringRef kFSOperationTotalBytesKey = CFSTR("kFSOperationTotalBytesKey");
+15 -1
src/frameworks/CoreServices/src/LaunchServices/constants.c
··· 13 13 const CFStringRef _kLSDisplayNameKey = CFSTR("LSDisplayName"); 14 14 const CFStringRef _kLSArchitectureKey = CFSTR("LSArchitecture"); 15 15 const CFStringRef _kLSBundlePathKey = CFSTR("LSBundlePath"); 16 + const CFStringRef _kLSPreviousASNKey = CFSTR("LSOtherASN"); 17 + const CFStringRef _kLSBundlePathDeviceIDKey = CFSTR("LSBundlePathDeviceIDKey"); 18 + const CFStringRef _kLSBundlePathINodeKey = CFSTR("LSBundlePatINodeKey"); 16 19 17 20 const CFStringRef _kLSApplicationTypeKey = CFSTR("ApplicationType"); 18 21 const CFStringRef _kLSApplicationForegroundTypeKey = CFSTR("Foreground"); 19 22 const CFStringRef _kLSApplicationBackgroundOnlyTypeKey = CFSTR("BackgroundOnly"); 23 + const CFStringRef _kLSApplicationUIElementTypeKey = CFSTR("UIElement"); 20 24 21 25 const CFStringRef _kLSExecutableFormatKey = CFSTR("LSExecutableFormat"); 22 26 const CFStringRef _kLSExecutableFormatMachOKey = CFSTR("LSExecutableMachOFormat"); ··· 40 44 const CFStringRef kLSSharedFileListVolumesIDiskVisible = CFSTR("com.apple.LSSharedFileList.FavoriteVolumes.iDiskIsVisible"); 41 45 const CFStringRef kLSSharedFileListVolumesNetworkVisible = CFSTR("com.apple.LSSharedFileList.FavoriteVolumes.NetworkIsVisible"); 42 46 47 + const CFStringRef kLSQuarantineAgentBundleIdentifierKey = CFSTR("LSQuarantineAgentBundleIdentifier"); 48 + const CFStringRef kLSQuarantineAgentNameKey = CFSTR("LSQuarantineAgentName"); 49 + const CFStringRef kLSQuarantineDataURLKey = CFSTR("LSQuarantineDataURL"); 50 + const CFStringRef kLSQuarantineOriginURLKey = CFSTR("LSQuarantineOriginURL"); 51 + const CFStringRef kLSQuarantineTimeStampKey = CFSTR("LSQuarantineTimeStamp"); 52 + const CFStringRef kLSQuarantineTypeKey = CFSTR("LSQuarantineType"); 53 + const CFStringRef kLSQuarantineTypeOtherDownload = CFSTR("LSQuarantineTypeOtherDownload"); 54 + 43 55 const CFStringRef kUTExportedTypeDeclarationsKey = CFSTR("UTExportedTypeDeclarations"); 44 56 const CFStringRef kUTImportedTypeDeclarationsKey = CFSTR("UTImportedTypeDeclarations"); 45 57 const CFStringRef kUTTypeIdentifierKey = CFSTR("UTTypeIdentifier"); ··· 53 65 const CFStringRef kUTTagClassMIMEType = CFSTR("public.mime-type"); 54 66 const CFStringRef kUTTagClassNSPboardType = CFSTR("com.apple.nspboard-type"); 55 67 const CFStringRef kUTTagClassOSType = CFSTR("com.apple.ostype"); 68 + const CFStringRef kUTTagClassDeviceModelCode = CFSTR("com.apple.device-model-code"); 69 + 56 70 const CFStringRef kUTTypeItem = CFSTR("public.item"); 57 71 const CFStringRef kUTTypeContent = CFSTR("public.content"); 58 72 const CFStringRef kUTTypeCompositeContent = CFSTR("public.composite-content"); ··· 181 195 const CFStringRef kUTTypeX509Certificate = CFSTR("public.x509-certificate"); 182 196 const CFStringRef kUTTypeElectronicPublication = CFSTR("org.idpf.epub-container"); 183 197 const CFStringRef kUTTypeLog = CFSTR("public.log"); 184 - 198 + const CFStringRef kUTTypeDevice = CFSTR("public.device");