Documentation
¶
Overview ¶
Package launchservices provides a fluent Go API over the macOS LaunchServices framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Index ¶
- Constants
- func AcquireIconRef(theIconRef IconRef) int16
- func CompositeIconRef(backgroundIconRef IconRef, foregroundIconRef IconRef, ...) int16
- func GetCustomIconsEnabled(vRefNum int16) (result int16, customIconsEnabled uint8)
- func GetIconRef(vRefNum int16, creator int, iconType int, theIconRef unsafe.Pointer) int16
- func GetIconRefFromComponent(inComponent *carboncore.ComponentRecord, outIconRef unsafe.Pointer) error
- func GetIconRefFromFileInfo(inRef *carboncore.FSRef, inFileNameLength int, inFileName unsafe.Pointer, ...) (result int, outLabel int16)
- func GetIconRefFromFolder(vRefNum int16, parentFolderID int, folderID int, attributes int8, ...) int16
- func GetIconRefFromIconFamilyPtr(inIconFamilyPtr unsafe.Pointer, inSize int, outIconRef unsafe.Pointer) int
- func GetIconRefFromTypeInfo(inCreator int, inType int, inExtension corefoundation.CFStringRef, ...) int16
- func GetIconRefOwners(theIconRef IconRef) (result int16, owners uint16)
- func IsDataAvailableInIconRef(inIconKind int, inIconRef IconRef) uint8
- func IsIconRefComposite(compositeIconRef IconRef, backgroundIconRef unsafe.Pointer, ...) int16
- func IsValidIconRef(theIconRef IconRef) uint8
- func KLSItemContentType() obj.Object
- func KLSItemDisplayKind() obj.Object
- func KLSItemDisplayName() obj.Object
- func KLSItemExtension() obj.Object
- func KLSItemExtensionIsHidden() obj.Object
- func KLSItemFileCreator() obj.Object
- func KLSItemFileType() obj.Object
- func KLSItemIsInvisible() obj.Object
- func KLSItemQuarantineProperties() obj.Object
- func KLSItemRoleHandlerDisplayName() obj.Object
- func KLSQuarantineAgentBundleIdentifierKey() obj.Object
- func KLSQuarantineAgentNameKey() obj.Object
- func KLSQuarantineDataURLKey() obj.Object
- func KLSQuarantineOriginURLKey() obj.Object
- func KLSQuarantineTimeStampKey() obj.Object
- func KLSQuarantineTypeCalendarEventAttachment() obj.Object
- func KLSQuarantineTypeEmailAttachment() obj.Object
- func KLSQuarantineTypeInstantMessageAttachment() obj.Object
- func KLSQuarantineTypeKey() obj.Object
- func KLSQuarantineTypeOtherAttachment() obj.Object
- func KLSQuarantineTypeOtherDownload() obj.Object
- func KLSQuarantineTypeWebDownload() obj.Object
- func KUTExportedTypeDeclarationsKey() obj.Object
- func KUTImportedTypeDeclarationsKey() obj.Object
- func KUTTagClassFilenameExtension() obj.Object
- func KUTTagClassMIMEType() obj.Object
- func KUTTagClassNSPboardType() obj.Object
- func KUTTagClassOSType() obj.Object
- func KUTType3DContent() obj.Object
- func KUTTypeAVIMovie() obj.Object
- func KUTTypeAliasFile() obj.Object
- func KUTTypeAliasRecord() obj.Object
- func KUTTypeAppleICNS() obj.Object
- func KUTTypeAppleProtectedMPEG4Audio() obj.Object
- func KUTTypeAppleProtectedMPEG4Video() obj.Object
- func KUTTypeAppleScript() obj.Object
- func KUTTypeApplication() obj.Object
- func KUTTypeApplicationBundle() obj.Object
- func KUTTypeApplicationFile() obj.Object
- func KUTTypeArchive() obj.Object
- func KUTTypeAssemblyLanguageSource() obj.Object
- func KUTTypeAudio() obj.Object
- func KUTTypeAudioInterchangeFileFormat() obj.Object
- func KUTTypeAudiovisualContent() obj.Object
- func KUTTypeBMP() obj.Object
- func KUTTypeBinaryPropertyList() obj.Object
- func KUTTypeBookmark() obj.Object
- func KUTTypeBundle() obj.Object
- func KUTTypeBzip2Archive() obj.Object
- func KUTTypeCHeader() obj.Object
- func KUTTypeCPlusPlusHeader() obj.Object
- func KUTTypeCPlusPlusSource() obj.Object
- func KUTTypeCSource() obj.Object
- func KUTTypeCalendarEvent() obj.Object
- func KUTTypeCommaSeparatedText() obj.Object
- func KUTTypeCompositeContent() obj.Object
- func KUTTypeConformsToKey() obj.Object
- func KUTTypeContact() obj.Object
- func KUTTypeContent() obj.Object
- func KUTTypeData() obj.Object
- func KUTTypeDatabase() obj.Object
- func KUTTypeDelimitedText() obj.Object
- func KUTTypeDescriptionKey() obj.Object
- func KUTTypeDirectory() obj.Object
- func KUTTypeDiskImage() obj.Object
- func KUTTypeElectronicPublication() obj.Object
- func KUTTypeEmailMessage() obj.Object
- func KUTTypeExecutable() obj.Object
- func KUTTypeFileURL() obj.Object
- func KUTTypeFlatRTFD() obj.Object
- func KUTTypeFolder() obj.Object
- func KUTTypeFont() obj.Object
- func KUTTypeFramework() obj.Object
- func KUTTypeGIF() obj.Object
- func KUTTypeGNUZipArchive() obj.Object
- func KUTTypeHTML() obj.Object
- func KUTTypeICO() obj.Object
- func KUTTypeIconFileKey() obj.Object
- func KUTTypeIdentifierKey() obj.Object
- func KUTTypeImage() obj.Object
- func KUTTypeInkText() obj.Object
- func KUTTypeInternetLocation() obj.Object
- func KUTTypeItem() obj.Object
- func KUTTypeJPEG() obj.Object
- func KUTTypeJPEG2000() obj.Object
- func KUTTypeJSON() obj.Object
- func KUTTypeJavaArchive() obj.Object
- func KUTTypeJavaClass() obj.Object
- func KUTTypeJavaScript() obj.Object
- func KUTTypeJavaSource() obj.Object
- func KUTTypeLivePhoto() obj.Object
- func KUTTypeLog() obj.Object
- func KUTTypeM3UPlaylist() obj.Object
- func KUTTypeMIDIAudio() obj.Object
- func KUTTypeMP3() obj.Object
- func KUTTypeMPEG() obj.Object
- func KUTTypeMPEG2TransportStream() obj.Object
- func KUTTypeMPEG2Video() obj.Object
- func KUTTypeMPEG4() obj.Object
- func KUTTypeMPEG4Audio() obj.Object
- func KUTTypeMessage() obj.Object
- func KUTTypeMountPoint() obj.Object
- func KUTTypeMovie() obj.Object
- func KUTTypeOSAScript() obj.Object
- func KUTTypeOSAScriptBundle() obj.Object
- func KUTTypeObjectiveCPlusPlusSource() obj.Object
- func KUTTypeObjectiveCSource() obj.Object
- func KUTTypePDF() obj.Object
- func KUTTypePHPScript() obj.Object
- func KUTTypePICT() obj.Object
- func KUTTypePKCS12() obj.Object
- func KUTTypePNG() obj.Object
- func KUTTypePackage() obj.Object
- func KUTTypePerlScript() obj.Object
- func KUTTypePlainText() obj.Object
- func KUTTypePlaylist() obj.Object
- func KUTTypePluginBundle() obj.Object
- func KUTTypePresentation() obj.Object
- func KUTTypePropertyList() obj.Object
- func KUTTypePythonScript() obj.Object
- func KUTTypeQuickLookGenerator() obj.Object
- func KUTTypeQuickTimeImage() obj.Object
- func KUTTypeQuickTimeMovie() obj.Object
- func KUTTypeRTF() obj.Object
- func KUTTypeRTFD() obj.Object
- func KUTTypeRawImage() obj.Object
- func KUTTypeReferenceURLKey() obj.Object
- func KUTTypeResolvable() obj.Object
- func KUTTypeRubyScript() obj.Object
- func KUTTypeScalableVectorGraphics() obj.Object
- func KUTTypeScript() obj.Object
- func KUTTypeShellScript() obj.Object
- func KUTTypeSourceCode() obj.Object
- func KUTTypeSpotlightImporter() obj.Object
- func KUTTypeSpreadsheet() obj.Object
- func KUTTypeSwiftSource() obj.Object
- func KUTTypeSymLink() obj.Object
- func KUTTypeSystemPreferencesPane() obj.Object
- func KUTTypeTIFF() obj.Object
- func KUTTypeTXNTextAndMultimediaData() obj.Object
- func KUTTypeTabSeparatedText() obj.Object
- func KUTTypeTagSpecificationKey() obj.Object
- func KUTTypeText() obj.Object
- func KUTTypeToDoItem() obj.Object
- func KUTTypeURL() obj.Object
- func KUTTypeURLBookmarkData() obj.Object
- func KUTTypeUTF8PlainText() obj.Object
- func KUTTypeUTF8TabSeparatedText() obj.Object
- func KUTTypeUTF16ExternalPlainText() obj.Object
- func KUTTypeUTF16PlainText() obj.Object
- func KUTTypeUnixExecutable() obj.Object
- func KUTTypeVCard() obj.Object
- func KUTTypeVersionKey() obj.Object
- func KUTTypeVideo() obj.Object
- func KUTTypeVolume() obj.Object
- func KUTTypeWaveformAudio() obj.Object
- func KUTTypeWebArchive() obj.Object
- func KUTTypeWindowsExecutable() obj.Object
- func KUTTypeX509Certificate() obj.Object
- func KUTTypeXML() obj.Object
- func KUTTypeXMLPropertyList() obj.Object
- func KUTTypeXPCService() obj.Object
- func KUTTypeZipArchive() obj.Object
- func LSCanRefAcceptItem(inItemFSRef *carboncore.FSRef, inTargetRef *carboncore.FSRef, ...) (result int, outAcceptsItem uint8)
- func LSCanURLAcceptURL(inItemURL corefoundation.CFURLRef, inTargetURL corefoundation.CFURLRef, ...) (result int, outAcceptsItem uint8)
- func LSCopyAllHandlersForURLScheme(inURLScheme corefoundation.CFStringRef) corefoundation.CFArrayRef
- func LSCopyAllRoleHandlersForContentType(inContentType corefoundation.CFStringRef, inRole LSRolesMask) corefoundation.CFArrayRef
- func LSCopyApplicationForMIMEType(inMIMEType obj.Object, inRoleMask LSRolesMask) (obj.Object, error)
- func LSCopyApplicationURLsForBundleIdentifier(inBundleIdentifier corefoundation.CFStringRef) (obj.Object, error)
- func LSCopyApplicationURLsForURL(inURL corefoundation.CFURLRef, inRoleMask LSRolesMask) corefoundation.CFArrayRef
- func LSCopyDefaultApplicationURLForContentType(inContentType corefoundation.CFStringRef, inRoleMask LSRolesMask) (obj.Object, error)
- func LSCopyDefaultApplicationURLForURL(inURL corefoundation.CFURLRef, inRoleMask LSRolesMask) (obj.Object, error)
- func LSCopyDefaultHandlerForURLScheme(inURLScheme corefoundation.CFStringRef) corefoundation.CFStringRef
- func LSCopyDefaultRoleHandlerForContentType(inContentType corefoundation.CFStringRef, inRole LSRolesMask) corefoundation.CFStringRef
- func LSCopyDisplayNameForRef(inRef *carboncore.FSRef) (obj.Object, error)
- func LSCopyDisplayNameForURL(inURL obj.Object) (obj.Object, error)
- func LSCopyItemAttribute(inItem *carboncore.FSRef, inRoles LSRolesMask, inAttributeName obj.Object) (obj.Object, error)
- func LSCopyItemAttributes(inItem *carboncore.FSRef, inRoles LSRolesMask, inAttributeNames obj.Object) (obj.Object, error)
- func LSCopyItemInfoForRef(inItemRef *carboncore.FSRef, inWhichInfo LSRequestedInfo, ...) int
- func LSCopyItemInfoForURL(inURL corefoundation.CFURLRef, inWhichInfo LSRequestedInfo, ...) int
- func LSCopyKindStringForMIMEType(inMIMEType obj.Object) (obj.Object, error)
- func LSCopyKindStringForRef(inFSRef *carboncore.FSRef) (obj.Object, error)
- func LSCopyKindStringForTypeInfo(inType int, inCreator int, inExtension obj.Object) (obj.Object, error)
- func LSCopyKindStringForURL(inURL obj.Object) (obj.Object, error)
- func LSFindApplicationForInfo(inCreator int, inBundleID obj.Object, inName obj.Object, ...) (obj.Object, error)
- func LSGetApplicationForInfo(inType int, inCreator int, inExtension obj.Object, inRoleMask LSRolesMask, ...) (obj.Object, error)
- func LSGetApplicationForItem(inItemRef *carboncore.FSRef, inRoleMask LSRolesMask, ...) (obj.Object, error)
- func LSGetApplicationForURL(inURL obj.Object, inRoleMask LSRolesMask, outAppRef *carboncore.FSRef) (obj.Object, error)
- func LSGetExtensionInfo(inNameLen int, inNameBuffer unsafe.Pointer) (result int, outExtStartIndex int)
- func LSOpenApplication(appParams unsafe.Pointer, outPSN unsafe.Pointer) int
- func LSOpenCFURLRef(inURL obj.Object) (obj.Object, error)
- func LSOpenFSRef(inRef *carboncore.FSRef, outLaunchedRef *carboncore.FSRef) error
- func LSOpenFromRefSpec(inLaunchSpec unsafe.Pointer, outLaunchedRef *carboncore.FSRef) int
- func LSOpenFromURLSpec(inLaunchSpec unsafe.Pointer, outLaunchedURL unsafe.Pointer) int
- func LSOpenItemsWithRole(inItems unsafe.Pointer, inItemCount int, inRole LSRolesMask, ...) int
- func LSOpenURLsWithRole(inURLs corefoundation.CFArrayRef, inRole LSRolesMask, inAEParam unsafe.Pointer, ...) int
- func LSRegisterFSRef(inRef *carboncore.FSRef, inUpdate uint8) error
- func LSRegisterURL(inURL obj.Object, inUpdate uint8) error
- func LSSetDefaultHandlerForURLScheme(inURLScheme obj.Object, inHandlerBundleID obj.Object) error
- func LSSetDefaultRoleHandlerForContentType(inContentType obj.Object, inRole LSRolesMask, inHandlerBundleID obj.Object) error
- func LSSetExtensionHiddenForRef(inRef *carboncore.FSRef, inHide uint8) error
- func LSSetExtensionHiddenForURL(inURL obj.Object, inHide uint8) error
- func LSSetHandlerOptionsForContentType(inContentType obj.Object, inOptions LSHandlerOptions) error
- func LSSetItemAttribute(inItem *carboncore.FSRef, inRoles LSRolesMask, inAttributeName obj.Object, ...) error
- func OverrideIconRef(oldIconRef IconRef, newIconRef IconRef) int16
- func ReadIconFromFSRef(ref *carboncore.FSRef, iconFamily unsafe.Pointer) int
- func RegisterIconRefFromFSRef(creator int, iconType int, iconFile *carboncore.FSRef, ...) error
- func RegisterIconRefFromIconFamily(creator int, iconType int, iconFamily unsafe.Pointer, ...) int16
- func ReleaseIconRef(theIconRef IconRef) int16
- func RemoveIconRefOverride(theIconRef IconRef) int16
- func SetCustomIconsEnabled(vRefNum int16, enableCustomIcons uint8) int16
- func UTCreateStringForOSType(inOSType int) corefoundation.CFStringRef
- func UTGetOSTypeFromString(inString corefoundation.CFStringRef) int
- func UTTypeConformsTo(inUTI corefoundation.CFStringRef, inConformsToUTI corefoundation.CFStringRef) uint8
- func UTTypeCopyAllTagsWithClass(inUTI corefoundation.CFStringRef, inTagClass corefoundation.CFStringRef) corefoundation.CFArrayRef
- func UTTypeCopyDeclaration(inUTI corefoundation.CFStringRef) corefoundation.CFDictionaryRef
- func UTTypeCopyDeclaringBundleURL(inUTI corefoundation.CFStringRef) corefoundation.CFURLRef
- func UTTypeCopyDescription(inUTI corefoundation.CFStringRef) corefoundation.CFStringRef
- func UTTypeCopyPreferredTagWithClass(inUTI corefoundation.CFStringRef, inTagClass corefoundation.CFStringRef) corefoundation.CFStringRef
- func UTTypeCreateAllIdentifiersForTag(inTagClass corefoundation.CFStringRef, inTag corefoundation.CFStringRef, ...) corefoundation.CFArrayRef
- func UTTypeCreatePreferredIdentifierForTag(inTagClass corefoundation.CFStringRef, inTag corefoundation.CFStringRef, ...) corefoundation.CFStringRef
- func UTTypeEqual(inUTI1 corefoundation.CFStringRef, inUTI2 corefoundation.CFStringRef) uint8
- func UTTypeIsDeclared(inUTI corefoundation.CFStringRef) uint8
- func UTTypeIsDynamic(inUTI corefoundation.CFStringRef) uint8
- func UnregisterIconRef(creator int, iconType int) int16
- func UpdateIconRef(theIconRef IconRef) int16
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EntryID
- type FilesecProperty
- type Flag
- type IconRef
- type Idtype
- type IpcInfoObjectType
- type LSAcceptanceFlags
- type LSApplicationParameters
- type LSHandlerOptions
- type LSItemInfoFlags
- type LSItemInfoRecord
- type LSLaunchFSRefSpec
- type LSLaunchFlags
- type LSLaunchURLSpec
- type LSRequestedInfo
- type LSRolesMask
- type LaunchDataType
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type OSClockid
- type OpaqueIconRef
- type Perm
- type PtrauthKey
- type QosClass
- type Tag
- type Type
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
const ( AppleMenuFolderIconResource = -3982 ControlPanelFolderIconResource = -3976 DesktopIconResource = -3992 DropFolderIconResource = -3979 ExtensionsFolderIconResource = -3973 FloppyIconResource = -3998 FontsFolderIconResource = -3968 FullTrashIconResource = -3984 GenericApplicationIconResource = -3996 GenericCDROMIconResource = -3987 GenericDeskAccessoryIconResource = -3991 GenericDocumentIconResource = -4000 GenericEditionFileIconResource = -3989 GenericExtensionIconResource = -16415 GenericFileServerIconResource = -3972 GenericFolderIconResource = -3999 GenericHardDiskIconResource = -3995 GenericMoverObjectIconResource = -3969 GenericPreferencesIconResource = -3971 GenericQueryDocumentIconResource = -16506 GenericRAMDiskIconResource = -3988 GenericStationeryIconResource = -3985 GenericSuitcaseIconResource = -3970 KAFPServerIcon = 1634103411 KAlertCautionBadgeIcon = 1667392615 KAlertCautionIcon = 1667331444 KAlertNoteIcon = 1852798053 KAlertStopIcon = 1937010544 KAliasBadgeIcon = 1633838183 KAppearanceFolderIcon = 1634758770 KAppleExtrasFolderIcon = 1634040004 KAppleLogoIcon = 1667330156 KAppleMenuFolderIcon = 1634561653 KAppleMenuFolderIconResource = -3982 KAppleMenuIcon = 1935765612 KAppleScriptBadgeIcon = 1935897200 KAppleTalkIcon = 1635019883 KAppleTalkZoneIcon = 1635023470 KApplicationSupportFolderIcon = 1634956656 KApplicationsFolderIcon = 1634758771 KAssistantsFolderIcon = 1634956484 KBackwardArrowIcon = 1650553455 KBurningIcon = 1651864174 KClipboardIcon = 1129072976 KClippingPictureTypeIcon = 1668051056 KClippingSoundTypeIcon = 1668051059 KClippingTextTypeIcon = 1668051060 KClippingUnknownTypeIcon = 1668051061 KColorSyncFolderIcon = 1886547814 KComputerIcon = 1919905652 KConnectToIcon = 1668178804 KContextualMenuItemsFolderIcon = 1668116085 KControlPanelDisabledFolderIcon = 1668575812 KControlPanelFolderIcon = 1668575852 KControlPanelFolderIconResource = -3976 KControlStripModulesFolderIcon = 1935963844 KDeleteAliasIcon = 1684106345 KDesktopIcon = 1684370283 KDesktopIconResource = -3992 KDocumentsFolderIcon = 1685021555 KDropFolderIcon = 1684172664 KDropFolderIconResource = -3979 KEjectMediaIcon = 1701471587 KExtensionsDisabledFolderIcon = 1702392900 KExtensionsFolderIcon = 1702392942 KExtensionsFolderIconResource = -3973 KFTPServerIcon = 1718906995 KFavoriteItemsIcon = 1717663346 KFavoritesFolderIcon = 1717663347 KFinderIcon = 1179534418 KFloppyIconResource = -3998 KFontSuitcaseIcon = 1179011404 KFontsFolderIcon = 1718578804 KFontsFolderIconResource = -3968 KForwardArrowIcon = 1717662319 KFullTrashIcon = 1718907496 KFullTrashIconResource = -3984 KGenericApplicationIcon = 1095782476 KGenericApplicationIconResource = -3996 KGenericCDROMIcon = 1667523698 KGenericCDROMIconResource = -3987 KGenericComponentIcon = 1953001063 KGenericControlPanelIcon = 1095782467 KGenericControlStripModuleIcon = 1935959414 KGenericDeskAccessoryIcon = 1095782468 KGenericDeskAccessoryIconResource = -3991 KGenericDocumentIcon = 1685021557 KGenericDocumentIconResource = -4000 KGenericEditionFileIcon = 1701082214 KGenericEditionFileIconResource = -3989 KGenericExtensionIcon = 1229867348 KGenericExtensionIconResource = -16415 KGenericFileServerIcon = 1936881266 KGenericFileServerIconResource = -3972 KGenericFloppyIcon = 1718382713 KGenericFolderIcon = 1718379634 KGenericFolderIconResource = -3999 KGenericFontIcon = 1717987692 KGenericFontScalerIcon = 1935895666 KGenericHardDiskIcon = 1751413611 KGenericHardDiskIconResource = -3995 KGenericIDiskIcon = 1768190827 KGenericMoverObjectIcon = 1836021362 KGenericMoverObjectIconResource = -3969 KGenericNetworkIcon = 1735288180 KGenericPCCardIcon = 1885564259 KGenericPreferencesIcon = 1886545254 KGenericPreferencesIconResource = -3971 KGenericQueryDocumentIcon = 1902473849 KGenericQueryDocumentIconResource = -16506 KGenericRAMDiskIcon = 1918987620 KGenericRAMDiskIconResource = -3988 KGenericRemovableMediaIcon = 1919774582 KGenericStationeryIcon = 1935961955 KGenericStationeryIconResource = -3985 KGenericSuitcaseIcon = 1937074548 KGenericSuitcaseIconResource = -3970 KGenericURLIcon = 1735750252 KGenericWORMIcon = 2003792493 KGenericWindowIcon = 1735879022 KGridIcon = 1735551332 KGroupIcon = 1735554416 KGuestUserIcon = 1735750514 KHTTPServerIcon = 1752461427 KHelpFolderIcon = -999789456 KHelpIcon = 1751477360 KHelpIconResource = -20271 KIPFileServerIcon = 1769173622 KIconServicesCatalogInfoMask = 531550 KIconServicesNoBadgeFlag = 1 KIconServicesNormalUsageFlag = 0 KIconServicesUpdateIfNeededFlag = 2 KInternationResourcesIcon = 1768319340 KInternationalResourcesIcon = 1768319340 KInternetFolderIcon = 1768846532 KInternetLocationAppleTalkZoneIcon = 1768710516 KInternetLocationFTPIcon = 1768711796 KInternetLocationFileIcon = 1768711785 KInternetLocationGenericIcon = 1768712037 KInternetLocationHTTPIcon = 1768712308 KInternetLocationMailIcon = 1768713569 KInternetLocationNSLNeighborhoodIcon = 1768713843 KInternetLocationNewsIcon = 1768713847 KInternetPlugInFolderIcon = -999398028 KInternetSearchSitesFolderIcon = 1769173862 KKeepArrangedIcon = 1634889319 KKeyboardLayoutIcon = 1801873772 KLSAppDoesNotClaimTypeErr = -10820 KLSAppDoesNotSupportSchemeWarning = -10821 KLSAppInTrashErr = -10660 KLSApplicationNotFoundErr = -10814 KLSAttributeNotFoundErr = -10662 KLSAttributeNotSettableErr = -10663 KLSCannotSetInfoErr = -10823 KLSDataErr = -10817 KLSDataTooOldErr = -10816 KLSExecutableIncorrectFormat = -10661 KLSGarbageCollectionUnsupportedErr = -10666 KLSIncompatibleApplicationVersionErr = -10664 KLSIncompatibleSystemVersionErr = -10825 // Deprecated: This option does nothing. KLSLaunchHasUntrustedContents = 4194304 // Deprecated: The Classic environment is no longer supported. KLSLaunchInClassic = 262144 KLSLaunchInProgressErr = -10818 // Deprecated: This option does nothing. KLSLaunchInhibitBGOnly = 128 // Deprecated: This option does nothing. KLSLaunchNoParams = 2048 // Deprecated: The Classic environment is no longer supported. KLSLaunchStartClassic = 131072 KLSMalformedLocErr = -10400 KLSMultipleSessionsNotSupportedErr = -10829 KLSNo32BitEnvironmentErr = -10386 KLSNoClassicEnvironmentErr = -10828 KLSNoExecutableErr = -10827 KLSNoLaunchPermissionErr = -10826 KLSNoRegistrationInfoErr = -10824 KLSNoRosettaEnvironmentErr = -10665 KLSNotAnApplicationErr = -10811 KLSNotInitializedErr = -10812 KLSNotRegisteredErr = -10819 KLSServerCommunicationErr = -10822 KLSUnknownCreator = 0 KLSUnknownErr = -10810 KLSUnknownType = 0 KLSUnknownTypeErr = -10815 KLocalesFolderIcon = -999526557 KLockedBadgeIcon = 1818387559 KLockedIcon = 1819239275 KMacOSReadMeFolderIcon = 1836020420 KMountedBadgeIcon = 1835164775 KMountedFolderIcon = 1835955300 KMountedFolderIconResource = -3977 KNoFilesIcon = 1852205420 KNoFolderIcon = 1852206180 KNoWriteIcon = 1853321844 KOpenFolderIcon = 1868983396 KOpenFolderIconResource = -3997 KOwnedFolderIcon = 1870098020 KOwnedFolderIconResource = -3980 KOwnerIcon = 1937077106 KPreferencesFolderIcon = 1886545604 KPreferencesFolderIconResource = -3974 KPrintMonitorFolderIcon = 1886547572 KPrintMonitorFolderIconResource = -3975 KPrinterDescriptionFolderIcon = 1886413926 KPrinterDriverFolderIcon = -999263644 KPrivateFolderIcon = 1886549606 KPrivateFolderIconResource = -3994 KProtectedApplicationFolderIcon = 1885433968 KProtectedSystemFolderIcon = 1886615923 KPublicFolderIcon = 1886741094 KQuestionMarkIcon = 1903519091 KRecentApplicationsFolderIcon = 1918988400 KRecentDocumentsFolderIcon = 1919184739 KRecentItemsIcon = 1919118964 KRecentServersFolderIcon = 1920168566 KRightContainerArrowIcon = 1919115634 KScriptingAdditionsFolderIcon = -999070862 KScriptsFolderIcon = 1935897284 KSharingPrivsNotApplicableIcon = 1936223841 KSharingPrivsReadOnlyIcon = 1936224879 KSharingPrivsReadWriteIcon = 1936224887 KSharingPrivsUnknownIcon = 1936225643 KSharingPrivsWritableIcon = 2003986804 KShortcutIcon = 1936224884 KShutdownItemsDisabledFolderIcon = 1936221252 KShutdownItemsFolderIcon = 1936221286 KSortAscendingIcon = 1634954852 KSortDescendingIcon = 1685286500 KSoundFileIcon = 1936091500 KSpeakableItemsFolder = 1936747369 KStartupFolderIconResource = -3981 KStartupItemsDisabledFolderIcon = 1937011268 KStartupItemsFolderIcon = 1937011316 KSystemExtensionDisabledFolderIcon = 1835098948 KSystemFolderIcon = 1835098995 KSystemFolderIconResource = -3983 KSystemIconsCreator = 1835098995 KSystemSuitcaseIcon = 2054388083 KTextEncodingsFolderIcon = -999004808 KToolbarAdvancedIcon = 1952604534 KToolbarApplicationsFolderIcon = 1950445683 KToolbarCustomizeIcon = 1952675187 KToolbarDeleteIcon = 1952736620 KToolbarDesktopFolderIcon = 1950643051 KToolbarDocumentsFolderIcon = 1950642019 KToolbarDownloadsFolderIcon = 1950644078 KToolbarFavoritesIcon = 1952866678 KToolbarHomeIcon = 1953001325 KToolbarInfoIcon = 1952606574 KToolbarLabelsIcon = 1952607330 KToolbarLibraryFolderIcon = 1951164770 KToolbarMovieFolderIcon = 1951231862 KToolbarMusicFolderIcon = 1951233395 KToolbarPicturesFolderIcon = 1951426915 KToolbarPublicFolderIcon = 1951429986 KToolbarSitesFolderIcon = 1951626355 KToolbarUtilitiesFolderIcon = 1951757420 KTrashIcon = 1953657704 KTrashIconResource = -3993 KTrueTypeFlatFontIcon = 1936092788 KTrueTypeFontIcon = 1952868716 KTrueTypeMultiFlatFontIcon = 1953784678 KUnknownFSObjectIcon = 1970169459 KUnlockedIcon = 1970037611 KUserFolderIcon = 1969646692 KUserIDiskIcon = 1969517419 KUserIcon = 1970496882 KUsersFolderIcon = 1970500292 KUtilitiesFolderIcon = 1970563524 KVoicesFolderIcon = 1719037795 KWorkgroupFolderIcon = 2003201124 MountedFolderIconResource = -3977 OpenFolderIconResource = -3997 OwnedFolderIconResource = -3980 PreferencesFolderIconResource = -3974 PrintMonitorFolderIconResource = -3975 PrivateFolderIconResource = -3994 StartupFolderIconResource = -3981 SystemFolderIconResource = -3983 TrashIconResource = -3993 )
Variables ¶
This section is empty.
Functions ¶
func AcquireIconRef ¶
AcquireIconRef calls the LaunchServices framework function AcquireIconRef.
func CompositeIconRef ¶
func CompositeIconRef(backgroundIconRef IconRef, foregroundIconRef IconRef, compositeIconRef unsafe.Pointer) int16
CompositeIconRef calls the LaunchServices framework function CompositeIconRef.
func GetCustomIconsEnabled ¶
GetCustomIconsEnabled calls the LaunchServices framework function GetCustomIconsEnabled.
func GetIconRef ¶
GetIconRef calls the LaunchServices framework function GetIconRef.
func GetIconRefFromComponent ¶
func GetIconRefFromComponent(inComponent *carboncore.ComponentRecord, outIconRef unsafe.Pointer) error
GetIconRefFromComponent reports an error if the LaunchServices framework function GetIconRefFromComponent fails.
func GetIconRefFromFileInfo ¶
func GetIconRefFromFileInfo(inRef *carboncore.FSRef, inFileNameLength int, inFileName unsafe.Pointer, inWhichInfo int, inCatalogInfo unsafe.Pointer, inUsageFlags int, outIconRef unsafe.Pointer) (result int, outLabel int16)
GetIconRefFromFileInfo calls the LaunchServices framework function GetIconRefFromFileInfo.
func GetIconRefFromFolder ¶
func GetIconRefFromFolder(vRefNum int16, parentFolderID int, folderID int, attributes int8, accessPrivileges int8, theIconRef unsafe.Pointer) int16
GetIconRefFromFolder calls the LaunchServices framework function GetIconRefFromFolder.
func GetIconRefFromIconFamilyPtr ¶
func GetIconRefFromIconFamilyPtr(inIconFamilyPtr unsafe.Pointer, inSize int, outIconRef unsafe.Pointer) int
GetIconRefFromIconFamilyPtr calls the LaunchServices framework function GetIconRefFromIconFamilyPtr.
func GetIconRefFromTypeInfo ¶
func GetIconRefFromTypeInfo(inCreator int, inType int, inExtension corefoundation.CFStringRef, inMIMEType corefoundation.CFStringRef, inUsageFlags int, outIconRef unsafe.Pointer) int16
GetIconRefFromTypeInfo calls the LaunchServices framework function GetIconRefFromTypeInfo.
func GetIconRefOwners ¶
GetIconRefOwners calls the LaunchServices framework function GetIconRefOwners.
func IsDataAvailableInIconRef ¶
IsDataAvailableInIconRef calls the LaunchServices framework function IsDataAvailableInIconRef.
func IsIconRefComposite ¶
func IsIconRefComposite(compositeIconRef IconRef, backgroundIconRef unsafe.Pointer, foregroundIconRef unsafe.Pointer) int16
IsIconRefComposite calls the LaunchServices framework function IsIconRefComposite.
func IsValidIconRef ¶
IsValidIconRef calls the LaunchServices framework function IsValidIconRef.
func KLSItemContentType ¶
KLSItemContentType returns the value of the constant kLSItemContentType.
func KLSItemDisplayKind ¶
KLSItemDisplayKind returns the value of the constant kLSItemDisplayKind.
func KLSItemDisplayName ¶
KLSItemDisplayName returns the value of the constant kLSItemDisplayName.
func KLSItemExtension ¶
KLSItemExtension returns the value of the constant kLSItemExtension.
func KLSItemExtensionIsHidden ¶
KLSItemExtensionIsHidden returns the value of the constant kLSItemExtensionIsHidden.
func KLSItemFileCreator ¶
KLSItemFileCreator returns the value of the constant kLSItemFileCreator.
func KLSItemFileType ¶
KLSItemFileType returns the value of the constant kLSItemFileType.
func KLSItemIsInvisible ¶
KLSItemIsInvisible returns the value of the constant kLSItemIsInvisible.
func KLSItemQuarantineProperties ¶
KLSItemQuarantineProperties returns the value of the constant kLSItemQuarantineProperties.
func KLSItemRoleHandlerDisplayName ¶
KLSItemRoleHandlerDisplayName returns the value of the constant kLSItemRoleHandlerDisplayName.
func KLSQuarantineAgentBundleIdentifierKey ¶
KLSQuarantineAgentBundleIdentifierKey returns the value of the constant kLSQuarantineAgentBundleIdentifierKey.
func KLSQuarantineAgentNameKey ¶
KLSQuarantineAgentNameKey returns the value of the constant kLSQuarantineAgentNameKey.
func KLSQuarantineDataURLKey ¶
KLSQuarantineDataURLKey returns the value of the constant kLSQuarantineDataURLKey.
func KLSQuarantineOriginURLKey ¶
KLSQuarantineOriginURLKey returns the value of the constant kLSQuarantineOriginURLKey.
func KLSQuarantineTimeStampKey ¶
KLSQuarantineTimeStampKey returns the value of the constant kLSQuarantineTimeStampKey.
func KLSQuarantineTypeCalendarEventAttachment ¶
KLSQuarantineTypeCalendarEventAttachment returns the value of the constant kLSQuarantineTypeCalendarEventAttachment.
func KLSQuarantineTypeEmailAttachment ¶
KLSQuarantineTypeEmailAttachment returns the value of the constant kLSQuarantineTypeEmailAttachment.
func KLSQuarantineTypeInstantMessageAttachment ¶
KLSQuarantineTypeInstantMessageAttachment returns the value of the constant kLSQuarantineTypeInstantMessageAttachment.
func KLSQuarantineTypeKey ¶
KLSQuarantineTypeKey returns the value of the constant kLSQuarantineTypeKey.
func KLSQuarantineTypeOtherAttachment ¶
KLSQuarantineTypeOtherAttachment returns the value of the constant kLSQuarantineTypeOtherAttachment.
func KLSQuarantineTypeOtherDownload ¶
KLSQuarantineTypeOtherDownload returns the value of the constant kLSQuarantineTypeOtherDownload.
func KLSQuarantineTypeWebDownload ¶
KLSQuarantineTypeWebDownload returns the value of the constant kLSQuarantineTypeWebDownload.
func KUTExportedTypeDeclarationsKey ¶
KUTExportedTypeDeclarationsKey returns the value of the constant kUTExportedTypeDeclarationsKey.
func KUTImportedTypeDeclarationsKey ¶
KUTImportedTypeDeclarationsKey returns the value of the constant kUTImportedTypeDeclarationsKey.
func KUTTagClassFilenameExtension ¶
KUTTagClassFilenameExtension returns the value of the constant kUTTagClassFilenameExtension.
func KUTTagClassMIMEType ¶
KUTTagClassMIMEType returns the value of the constant kUTTagClassMIMEType.
func KUTTagClassNSPboardType ¶
KUTTagClassNSPboardType returns the value of the constant kUTTagClassNSPboardType.
func KUTTagClassOSType ¶
KUTTagClassOSType returns the value of the constant kUTTagClassOSType.
func KUTType3DContent ¶
KUTType3DContent returns the value of the constant kUTType3DContent.
func KUTTypeAVIMovie ¶
KUTTypeAVIMovie returns the value of the constant kUTTypeAVIMovie.
func KUTTypeAliasFile ¶
KUTTypeAliasFile returns the value of the constant kUTTypeAliasFile.
func KUTTypeAliasRecord ¶
KUTTypeAliasRecord returns the value of the constant kUTTypeAliasRecord.
func KUTTypeAppleICNS ¶
KUTTypeAppleICNS returns the value of the constant kUTTypeAppleICNS.
func KUTTypeAppleProtectedMPEG4Audio ¶
KUTTypeAppleProtectedMPEG4Audio returns the value of the constant kUTTypeAppleProtectedMPEG4Audio.
func KUTTypeAppleProtectedMPEG4Video ¶
KUTTypeAppleProtectedMPEG4Video returns the value of the constant kUTTypeAppleProtectedMPEG4Video.
func KUTTypeAppleScript ¶
KUTTypeAppleScript returns the value of the constant kUTTypeAppleScript.
func KUTTypeApplication ¶
KUTTypeApplication returns the value of the constant kUTTypeApplication.
func KUTTypeApplicationBundle ¶
KUTTypeApplicationBundle returns the value of the constant kUTTypeApplicationBundle.
func KUTTypeApplicationFile ¶
KUTTypeApplicationFile returns the value of the constant kUTTypeApplicationFile.
func KUTTypeArchive ¶
KUTTypeArchive returns the value of the constant kUTTypeArchive.
func KUTTypeAssemblyLanguageSource ¶
KUTTypeAssemblyLanguageSource returns the value of the constant kUTTypeAssemblyLanguageSource.
func KUTTypeAudio ¶
KUTTypeAudio returns the value of the constant kUTTypeAudio.
func KUTTypeAudioInterchangeFileFormat ¶
KUTTypeAudioInterchangeFileFormat returns the value of the constant kUTTypeAudioInterchangeFileFormat.
func KUTTypeAudiovisualContent ¶
KUTTypeAudiovisualContent returns the value of the constant kUTTypeAudiovisualContent.
func KUTTypeBMP ¶
KUTTypeBMP returns the value of the constant kUTTypeBMP.
func KUTTypeBinaryPropertyList ¶
KUTTypeBinaryPropertyList returns the value of the constant kUTTypeBinaryPropertyList.
func KUTTypeBookmark ¶
KUTTypeBookmark returns the value of the constant kUTTypeBookmark.
func KUTTypeBundle ¶
KUTTypeBundle returns the value of the constant kUTTypeBundle.
func KUTTypeBzip2Archive ¶
KUTTypeBzip2Archive returns the value of the constant kUTTypeBzip2Archive.
func KUTTypeCHeader ¶
KUTTypeCHeader returns the value of the constant kUTTypeCHeader.
func KUTTypeCPlusPlusHeader ¶
KUTTypeCPlusPlusHeader returns the value of the constant kUTTypeCPlusPlusHeader.
func KUTTypeCPlusPlusSource ¶
KUTTypeCPlusPlusSource returns the value of the constant kUTTypeCPlusPlusSource.
func KUTTypeCSource ¶
KUTTypeCSource returns the value of the constant kUTTypeCSource.
func KUTTypeCalendarEvent ¶
KUTTypeCalendarEvent returns the value of the constant kUTTypeCalendarEvent.
func KUTTypeCommaSeparatedText ¶
KUTTypeCommaSeparatedText returns the value of the constant kUTTypeCommaSeparatedText.
func KUTTypeCompositeContent ¶
KUTTypeCompositeContent returns the value of the constant kUTTypeCompositeContent.
func KUTTypeConformsToKey ¶
KUTTypeConformsToKey returns the value of the constant kUTTypeConformsToKey.
func KUTTypeContact ¶
KUTTypeContact returns the value of the constant kUTTypeContact.
func KUTTypeContent ¶
KUTTypeContent returns the value of the constant kUTTypeContent.
func KUTTypeData ¶
KUTTypeData returns the value of the constant kUTTypeData.
func KUTTypeDatabase ¶
KUTTypeDatabase returns the value of the constant kUTTypeDatabase.
func KUTTypeDelimitedText ¶
KUTTypeDelimitedText returns the value of the constant kUTTypeDelimitedText.
func KUTTypeDescriptionKey ¶
KUTTypeDescriptionKey returns the value of the constant kUTTypeDescriptionKey.
func KUTTypeDirectory ¶
KUTTypeDirectory returns the value of the constant kUTTypeDirectory.
func KUTTypeDiskImage ¶
KUTTypeDiskImage returns the value of the constant kUTTypeDiskImage.
func KUTTypeElectronicPublication ¶
KUTTypeElectronicPublication returns the value of the constant kUTTypeElectronicPublication.
func KUTTypeEmailMessage ¶
KUTTypeEmailMessage returns the value of the constant kUTTypeEmailMessage.
func KUTTypeExecutable ¶
KUTTypeExecutable returns the value of the constant kUTTypeExecutable.
func KUTTypeFileURL ¶
KUTTypeFileURL returns the value of the constant kUTTypeFileURL.
func KUTTypeFlatRTFD ¶
KUTTypeFlatRTFD returns the value of the constant kUTTypeFlatRTFD.
func KUTTypeFolder ¶
KUTTypeFolder returns the value of the constant kUTTypeFolder.
func KUTTypeFont ¶
KUTTypeFont returns the value of the constant kUTTypeFont.
func KUTTypeFramework ¶
KUTTypeFramework returns the value of the constant kUTTypeFramework.
func KUTTypeGIF ¶
KUTTypeGIF returns the value of the constant kUTTypeGIF.
func KUTTypeGNUZipArchive ¶
KUTTypeGNUZipArchive returns the value of the constant kUTTypeGNUZipArchive.
func KUTTypeHTML ¶
KUTTypeHTML returns the value of the constant kUTTypeHTML.
func KUTTypeICO ¶
KUTTypeICO returns the value of the constant kUTTypeICO.
func KUTTypeIconFileKey ¶
KUTTypeIconFileKey returns the value of the constant kUTTypeIconFileKey.
func KUTTypeIdentifierKey ¶
KUTTypeIdentifierKey returns the value of the constant kUTTypeIdentifierKey.
func KUTTypeImage ¶
KUTTypeImage returns the value of the constant kUTTypeImage.
func KUTTypeInkText ¶
KUTTypeInkText returns the value of the constant kUTTypeInkText.
func KUTTypeInternetLocation ¶
KUTTypeInternetLocation returns the value of the constant kUTTypeInternetLocation.
func KUTTypeItem ¶
KUTTypeItem returns the value of the constant kUTTypeItem.
func KUTTypeJPEG ¶
KUTTypeJPEG returns the value of the constant kUTTypeJPEG.
func KUTTypeJPEG2000 ¶
KUTTypeJPEG2000 returns the value of the constant kUTTypeJPEG2000.
func KUTTypeJSON ¶
KUTTypeJSON returns the value of the constant kUTTypeJSON.
func KUTTypeJavaArchive ¶
KUTTypeJavaArchive returns the value of the constant kUTTypeJavaArchive.
func KUTTypeJavaClass ¶
KUTTypeJavaClass returns the value of the constant kUTTypeJavaClass.
func KUTTypeJavaScript ¶
KUTTypeJavaScript returns the value of the constant kUTTypeJavaScript.
func KUTTypeJavaSource ¶
KUTTypeJavaSource returns the value of the constant kUTTypeJavaSource.
func KUTTypeLivePhoto ¶
KUTTypeLivePhoto returns the value of the constant kUTTypeLivePhoto.
func KUTTypeLog ¶
KUTTypeLog returns the value of the constant kUTTypeLog.
func KUTTypeM3UPlaylist ¶
KUTTypeM3UPlaylist returns the value of the constant kUTTypeM3UPlaylist.
func KUTTypeMIDIAudio ¶
KUTTypeMIDIAudio returns the value of the constant kUTTypeMIDIAudio.
func KUTTypeMP3 ¶
KUTTypeMP3 returns the value of the constant kUTTypeMP3.
func KUTTypeMPEG ¶
KUTTypeMPEG returns the value of the constant kUTTypeMPEG.
func KUTTypeMPEG2TransportStream ¶
KUTTypeMPEG2TransportStream returns the value of the constant kUTTypeMPEG2TransportStream.
func KUTTypeMPEG2Video ¶
KUTTypeMPEG2Video returns the value of the constant kUTTypeMPEG2Video.
func KUTTypeMPEG4 ¶
KUTTypeMPEG4 returns the value of the constant kUTTypeMPEG4.
func KUTTypeMPEG4Audio ¶
KUTTypeMPEG4Audio returns the value of the constant kUTTypeMPEG4Audio.
func KUTTypeMessage ¶
KUTTypeMessage returns the value of the constant kUTTypeMessage.
func KUTTypeMountPoint ¶
KUTTypeMountPoint returns the value of the constant kUTTypeMountPoint.
func KUTTypeMovie ¶
KUTTypeMovie returns the value of the constant kUTTypeMovie.
func KUTTypeOSAScript ¶
KUTTypeOSAScript returns the value of the constant kUTTypeOSAScript.
func KUTTypeOSAScriptBundle ¶
KUTTypeOSAScriptBundle returns the value of the constant kUTTypeOSAScriptBundle.
func KUTTypeObjectiveCPlusPlusSource ¶
KUTTypeObjectiveCPlusPlusSource returns the value of the constant kUTTypeObjectiveCPlusPlusSource.
func KUTTypeObjectiveCSource ¶
KUTTypeObjectiveCSource returns the value of the constant kUTTypeObjectiveCSource.
func KUTTypePDF ¶
KUTTypePDF returns the value of the constant kUTTypePDF.
func KUTTypePHPScript ¶
KUTTypePHPScript returns the value of the constant kUTTypePHPScript.
func KUTTypePICT ¶
KUTTypePICT returns the value of the constant kUTTypePICT.
func KUTTypePKCS12 ¶
KUTTypePKCS12 returns the value of the constant kUTTypePKCS12.
func KUTTypePNG ¶
KUTTypePNG returns the value of the constant kUTTypePNG.
func KUTTypePackage ¶
KUTTypePackage returns the value of the constant kUTTypePackage.
func KUTTypePerlScript ¶
KUTTypePerlScript returns the value of the constant kUTTypePerlScript.
func KUTTypePlainText ¶
KUTTypePlainText returns the value of the constant kUTTypePlainText.
func KUTTypePlaylist ¶
KUTTypePlaylist returns the value of the constant kUTTypePlaylist.
func KUTTypePluginBundle ¶
KUTTypePluginBundle returns the value of the constant kUTTypePluginBundle.
func KUTTypePresentation ¶
KUTTypePresentation returns the value of the constant kUTTypePresentation.
func KUTTypePropertyList ¶
KUTTypePropertyList returns the value of the constant kUTTypePropertyList.
func KUTTypePythonScript ¶
KUTTypePythonScript returns the value of the constant kUTTypePythonScript.
func KUTTypeQuickLookGenerator ¶
KUTTypeQuickLookGenerator returns the value of the constant kUTTypeQuickLookGenerator.
func KUTTypeQuickTimeImage ¶
KUTTypeQuickTimeImage returns the value of the constant kUTTypeQuickTimeImage.
func KUTTypeQuickTimeMovie ¶
KUTTypeQuickTimeMovie returns the value of the constant kUTTypeQuickTimeMovie.
func KUTTypeRTF ¶
KUTTypeRTF returns the value of the constant kUTTypeRTF.
func KUTTypeRTFD ¶
KUTTypeRTFD returns the value of the constant kUTTypeRTFD.
func KUTTypeRawImage ¶
KUTTypeRawImage returns the value of the constant kUTTypeRawImage.
func KUTTypeReferenceURLKey ¶
KUTTypeReferenceURLKey returns the value of the constant kUTTypeReferenceURLKey.
func KUTTypeResolvable ¶
KUTTypeResolvable returns the value of the constant kUTTypeResolvable.
func KUTTypeRubyScript ¶
KUTTypeRubyScript returns the value of the constant kUTTypeRubyScript.
func KUTTypeScalableVectorGraphics ¶
KUTTypeScalableVectorGraphics returns the value of the constant kUTTypeScalableVectorGraphics.
func KUTTypeScript ¶
KUTTypeScript returns the value of the constant kUTTypeScript.
func KUTTypeShellScript ¶
KUTTypeShellScript returns the value of the constant kUTTypeShellScript.
func KUTTypeSourceCode ¶
KUTTypeSourceCode returns the value of the constant kUTTypeSourceCode.
func KUTTypeSpotlightImporter ¶
KUTTypeSpotlightImporter returns the value of the constant kUTTypeSpotlightImporter.
func KUTTypeSpreadsheet ¶
KUTTypeSpreadsheet returns the value of the constant kUTTypeSpreadsheet.
func KUTTypeSwiftSource ¶
KUTTypeSwiftSource returns the value of the constant kUTTypeSwiftSource.
func KUTTypeSymLink ¶
KUTTypeSymLink returns the value of the constant kUTTypeSymLink.
func KUTTypeSystemPreferencesPane ¶
KUTTypeSystemPreferencesPane returns the value of the constant kUTTypeSystemPreferencesPane.
func KUTTypeTIFF ¶
KUTTypeTIFF returns the value of the constant kUTTypeTIFF.
func KUTTypeTXNTextAndMultimediaData ¶
KUTTypeTXNTextAndMultimediaData returns the value of the constant kUTTypeTXNTextAndMultimediaData.
func KUTTypeTabSeparatedText ¶
KUTTypeTabSeparatedText returns the value of the constant kUTTypeTabSeparatedText.
func KUTTypeTagSpecificationKey ¶
KUTTypeTagSpecificationKey returns the value of the constant kUTTypeTagSpecificationKey.
func KUTTypeText ¶
KUTTypeText returns the value of the constant kUTTypeText.
func KUTTypeToDoItem ¶
KUTTypeToDoItem returns the value of the constant kUTTypeToDoItem.
func KUTTypeURL ¶
KUTTypeURL returns the value of the constant kUTTypeURL.
func KUTTypeURLBookmarkData ¶
KUTTypeURLBookmarkData returns the value of the constant kUTTypeURLBookmarkData.
func KUTTypeUTF8PlainText ¶
KUTTypeUTF8PlainText returns the value of the constant kUTTypeUTF8PlainText.
func KUTTypeUTF8TabSeparatedText ¶
KUTTypeUTF8TabSeparatedText returns the value of the constant kUTTypeUTF8TabSeparatedText.
func KUTTypeUTF16ExternalPlainText ¶
KUTTypeUTF16ExternalPlainText returns the value of the constant kUTTypeUTF16ExternalPlainText.
func KUTTypeUTF16PlainText ¶
KUTTypeUTF16PlainText returns the value of the constant kUTTypeUTF16PlainText.
func KUTTypeUnixExecutable ¶
KUTTypeUnixExecutable returns the value of the constant kUTTypeUnixExecutable.
func KUTTypeVCard ¶
KUTTypeVCard returns the value of the constant kUTTypeVCard.
func KUTTypeVersionKey ¶
KUTTypeVersionKey returns the value of the constant kUTTypeVersionKey.
func KUTTypeVideo ¶
KUTTypeVideo returns the value of the constant kUTTypeVideo.
func KUTTypeVolume ¶
KUTTypeVolume returns the value of the constant kUTTypeVolume.
func KUTTypeWaveformAudio ¶
KUTTypeWaveformAudio returns the value of the constant kUTTypeWaveformAudio.
func KUTTypeWebArchive ¶
KUTTypeWebArchive returns the value of the constant kUTTypeWebArchive.
func KUTTypeWindowsExecutable ¶
KUTTypeWindowsExecutable returns the value of the constant kUTTypeWindowsExecutable.
func KUTTypeX509Certificate ¶
KUTTypeX509Certificate returns the value of the constant kUTTypeX509Certificate.
func KUTTypeXML ¶
KUTTypeXML returns the value of the constant kUTTypeXML.
func KUTTypeXMLPropertyList ¶
KUTTypeXMLPropertyList returns the value of the constant kUTTypeXMLPropertyList.
func KUTTypeXPCService ¶
KUTTypeXPCService returns the value of the constant kUTTypeXPCService.
func KUTTypeZipArchive ¶
KUTTypeZipArchive returns the value of the constant kUTTypeZipArchive.
func LSCanRefAcceptItem ¶
func LSCanRefAcceptItem(inItemFSRef *carboncore.FSRef, inTargetRef *carboncore.FSRef, inRoleMask LSRolesMask, inFlags LSAcceptanceFlags) (result int, outAcceptsItem uint8)
LSCanRefAcceptItem calls the LaunchServices framework function LSCanRefAcceptItem.
func LSCanURLAcceptURL ¶
func LSCanURLAcceptURL(inItemURL corefoundation.CFURLRef, inTargetURL corefoundation.CFURLRef, inRoleMask LSRolesMask, inFlags LSAcceptanceFlags) (result int, outAcceptsItem uint8)
LSCanURLAcceptURL calls the LaunchServices framework function LSCanURLAcceptURL.
func LSCopyAllHandlersForURLScheme ¶
func LSCopyAllHandlersForURLScheme(inURLScheme corefoundation.CFStringRef) corefoundation.CFArrayRef
LSCopyAllHandlersForURLScheme calls the LaunchServices framework function LSCopyAllHandlersForURLScheme.
func LSCopyAllRoleHandlersForContentType ¶
func LSCopyAllRoleHandlersForContentType(inContentType corefoundation.CFStringRef, inRole LSRolesMask) corefoundation.CFArrayRef
LSCopyAllRoleHandlersForContentType calls the LaunchServices framework function LSCopyAllRoleHandlersForContentType.
func LSCopyApplicationForMIMEType ¶
func LSCopyApplicationForMIMEType(inMIMEType obj.Object, inRoleMask LSRolesMask) (obj.Object, error)
LSCopyApplicationForMIMEType reports an error if the LaunchServices framework function LSCopyApplicationForMIMEType fails.
func LSCopyApplicationURLsForBundleIdentifier ¶
func LSCopyApplicationURLsForBundleIdentifier(inBundleIdentifier corefoundation.CFStringRef) (obj.Object, error)
func LSCopyApplicationURLsForURL ¶
func LSCopyApplicationURLsForURL(inURL corefoundation.CFURLRef, inRoleMask LSRolesMask) corefoundation.CFArrayRef
LSCopyApplicationURLsForURL calls the LaunchServices framework function LSCopyApplicationURLsForURL.
func LSCopyDefaultApplicationURLForContentType ¶
func LSCopyDefaultApplicationURLForContentType(inContentType corefoundation.CFStringRef, inRoleMask LSRolesMask) (obj.Object, error)
func LSCopyDefaultApplicationURLForURL ¶
func LSCopyDefaultApplicationURLForURL(inURL corefoundation.CFURLRef, inRoleMask LSRolesMask) (obj.Object, error)
func LSCopyDefaultHandlerForURLScheme ¶
func LSCopyDefaultHandlerForURLScheme(inURLScheme corefoundation.CFStringRef) corefoundation.CFStringRef
LSCopyDefaultHandlerForURLScheme calls the LaunchServices framework function LSCopyDefaultHandlerForURLScheme.
func LSCopyDefaultRoleHandlerForContentType ¶
func LSCopyDefaultRoleHandlerForContentType(inContentType corefoundation.CFStringRef, inRole LSRolesMask) corefoundation.CFStringRef
LSCopyDefaultRoleHandlerForContentType calls the LaunchServices framework function LSCopyDefaultRoleHandlerForContentType.
func LSCopyDisplayNameForRef ¶
func LSCopyDisplayNameForRef(inRef *carboncore.FSRef) (obj.Object, error)
LSCopyDisplayNameForRef reports an error if the LaunchServices framework function LSCopyDisplayNameForRef fails.
func LSCopyDisplayNameForURL ¶
LSCopyDisplayNameForURL reports an error if the LaunchServices framework function LSCopyDisplayNameForURL fails.
func LSCopyItemAttribute ¶
func LSCopyItemAttribute(inItem *carboncore.FSRef, inRoles LSRolesMask, inAttributeName obj.Object) (obj.Object, error)
LSCopyItemAttribute reports an error if the LaunchServices framework function LSCopyItemAttribute fails.
func LSCopyItemAttributes ¶
func LSCopyItemAttributes(inItem *carboncore.FSRef, inRoles LSRolesMask, inAttributeNames obj.Object) (obj.Object, error)
LSCopyItemAttributes reports an error if the LaunchServices framework function LSCopyItemAttributes fails.
func LSCopyItemInfoForRef ¶
func LSCopyItemInfoForRef(inItemRef *carboncore.FSRef, inWhichInfo LSRequestedInfo, outItemInfo unsafe.Pointer) int
LSCopyItemInfoForRef calls the LaunchServices framework function LSCopyItemInfoForRef.
func LSCopyItemInfoForURL ¶
func LSCopyItemInfoForURL(inURL corefoundation.CFURLRef, inWhichInfo LSRequestedInfo, outItemInfo unsafe.Pointer) int
LSCopyItemInfoForURL calls the LaunchServices framework function LSCopyItemInfoForURL.
func LSCopyKindStringForMIMEType ¶
LSCopyKindStringForMIMEType reports an error if the LaunchServices framework function LSCopyKindStringForMIMEType fails.
func LSCopyKindStringForRef ¶
func LSCopyKindStringForRef(inFSRef *carboncore.FSRef) (obj.Object, error)
LSCopyKindStringForRef reports an error if the LaunchServices framework function LSCopyKindStringForRef fails.
func LSCopyKindStringForTypeInfo ¶
func LSCopyKindStringForTypeInfo(inType int, inCreator int, inExtension obj.Object) (obj.Object, error)
LSCopyKindStringForTypeInfo reports an error if the LaunchServices framework function LSCopyKindStringForTypeInfo fails.
func LSCopyKindStringForURL ¶
LSCopyKindStringForURL reports an error if the LaunchServices framework function LSCopyKindStringForURL fails.
func LSFindApplicationForInfo ¶
func LSFindApplicationForInfo(inCreator int, inBundleID obj.Object, inName obj.Object, outAppRef *carboncore.FSRef) (obj.Object, error)
LSFindApplicationForInfo reports an error if the LaunchServices framework function LSFindApplicationForInfo fails.
func LSGetApplicationForInfo ¶
func LSGetApplicationForInfo(inType int, inCreator int, inExtension obj.Object, inRoleMask LSRolesMask, outAppRef *carboncore.FSRef) (obj.Object, error)
LSGetApplicationForInfo reports an error if the LaunchServices framework function LSGetApplicationForInfo fails.
func LSGetApplicationForItem ¶
func LSGetApplicationForItem(inItemRef *carboncore.FSRef, inRoleMask LSRolesMask, outAppRef *carboncore.FSRef) (obj.Object, error)
LSGetApplicationForItem reports an error if the LaunchServices framework function LSGetApplicationForItem fails.
func LSGetApplicationForURL ¶
func LSGetApplicationForURL(inURL obj.Object, inRoleMask LSRolesMask, outAppRef *carboncore.FSRef) (obj.Object, error)
LSGetApplicationForURL reports an error if the LaunchServices framework function LSGetApplicationForURL fails.
func LSGetExtensionInfo ¶
func LSGetExtensionInfo(inNameLen int, inNameBuffer unsafe.Pointer) (result int, outExtStartIndex int)
LSGetExtensionInfo calls the LaunchServices framework function LSGetExtensionInfo.
func LSOpenApplication ¶
LSOpenApplication calls the LaunchServices framework function LSOpenApplication.
func LSOpenCFURLRef ¶
LSOpenCFURLRef reports an error if the LaunchServices framework function LSOpenCFURLRef fails.
func LSOpenFSRef ¶
func LSOpenFSRef(inRef *carboncore.FSRef, outLaunchedRef *carboncore.FSRef) error
LSOpenFSRef reports an error if the LaunchServices framework function LSOpenFSRef fails.
func LSOpenFromRefSpec ¶
func LSOpenFromRefSpec(inLaunchSpec unsafe.Pointer, outLaunchedRef *carboncore.FSRef) int
LSOpenFromRefSpec calls the LaunchServices framework function LSOpenFromRefSpec.
func LSOpenFromURLSpec ¶
LSOpenFromURLSpec calls the LaunchServices framework function LSOpenFromURLSpec.
func LSOpenItemsWithRole ¶
func LSOpenItemsWithRole(inItems unsafe.Pointer, inItemCount int, inRole LSRolesMask, inAEParam unsafe.Pointer, inAppParams unsafe.Pointer, outPSNs unsafe.Pointer, inMaxPSNCount int) int
LSOpenItemsWithRole calls the LaunchServices framework function LSOpenItemsWithRole.
func LSOpenURLsWithRole ¶
func LSOpenURLsWithRole(inURLs corefoundation.CFArrayRef, inRole LSRolesMask, inAEParam unsafe.Pointer, inAppParams unsafe.Pointer, outPSNs unsafe.Pointer, inMaxPSNCount int) int
LSOpenURLsWithRole calls the LaunchServices framework function LSOpenURLsWithRole.
func LSRegisterFSRef ¶
func LSRegisterFSRef(inRef *carboncore.FSRef, inUpdate uint8) error
LSRegisterFSRef reports an error if the LaunchServices framework function LSRegisterFSRef fails.
func LSRegisterURL ¶
LSRegisterURL reports an error if the LaunchServices framework function LSRegisterURL fails.
func LSSetDefaultHandlerForURLScheme ¶
LSSetDefaultHandlerForURLScheme reports an error if the LaunchServices framework function LSSetDefaultHandlerForURLScheme fails.
func LSSetDefaultRoleHandlerForContentType ¶
func LSSetDefaultRoleHandlerForContentType(inContentType obj.Object, inRole LSRolesMask, inHandlerBundleID obj.Object) error
LSSetDefaultRoleHandlerForContentType reports an error if the LaunchServices framework function LSSetDefaultRoleHandlerForContentType fails.
func LSSetExtensionHiddenForRef ¶
func LSSetExtensionHiddenForRef(inRef *carboncore.FSRef, inHide uint8) error
LSSetExtensionHiddenForRef reports an error if the LaunchServices framework function LSSetExtensionHiddenForRef fails.
func LSSetExtensionHiddenForURL ¶
LSSetExtensionHiddenForURL reports an error if the LaunchServices framework function LSSetExtensionHiddenForURL fails.
func LSSetHandlerOptionsForContentType ¶
func LSSetHandlerOptionsForContentType(inContentType obj.Object, inOptions LSHandlerOptions) error
LSSetHandlerOptionsForContentType reports an error if the LaunchServices framework function LSSetHandlerOptionsForContentType fails.
func LSSetItemAttribute ¶
func LSSetItemAttribute(inItem *carboncore.FSRef, inRoles LSRolesMask, inAttributeName obj.Object, inValue obj.Object) error
LSSetItemAttribute reports an error if the LaunchServices framework function LSSetItemAttribute fails.
func OverrideIconRef ¶
OverrideIconRef calls the LaunchServices framework function OverrideIconRef.
func ReadIconFromFSRef ¶
func ReadIconFromFSRef(ref *carboncore.FSRef, iconFamily unsafe.Pointer) int
ReadIconFromFSRef calls the LaunchServices framework function ReadIconFromFSRef.
func RegisterIconRefFromFSRef ¶
func RegisterIconRefFromFSRef(creator int, iconType int, iconFile *carboncore.FSRef, theIconRef unsafe.Pointer) error
RegisterIconRefFromFSRef reports an error if the LaunchServices framework function RegisterIconRefFromFSRef fails.
func RegisterIconRefFromIconFamily ¶
func RegisterIconRefFromIconFamily(creator int, iconType int, iconFamily unsafe.Pointer, theIconRef unsafe.Pointer) int16
RegisterIconRefFromIconFamily calls the LaunchServices framework function RegisterIconRefFromIconFamily.
func ReleaseIconRef ¶
ReleaseIconRef calls the LaunchServices framework function ReleaseIconRef.
func RemoveIconRefOverride ¶
RemoveIconRefOverride calls the LaunchServices framework function RemoveIconRefOverride.
func SetCustomIconsEnabled ¶
SetCustomIconsEnabled calls the LaunchServices framework function SetCustomIconsEnabled.
func UTCreateStringForOSType ¶
func UTCreateStringForOSType(inOSType int) corefoundation.CFStringRef
UTCreateStringForOSType calls the LaunchServices framework function UTCreateStringForOSType.
func UTGetOSTypeFromString ¶
func UTGetOSTypeFromString(inString corefoundation.CFStringRef) int
UTGetOSTypeFromString calls the LaunchServices framework function UTGetOSTypeFromString.
func UTTypeConformsTo ¶
func UTTypeConformsTo(inUTI corefoundation.CFStringRef, inConformsToUTI corefoundation.CFStringRef) uint8
UTTypeConformsTo calls the LaunchServices framework function UTTypeConformsTo.
func UTTypeCopyAllTagsWithClass ¶
func UTTypeCopyAllTagsWithClass(inUTI corefoundation.CFStringRef, inTagClass corefoundation.CFStringRef) corefoundation.CFArrayRef
UTTypeCopyAllTagsWithClass calls the LaunchServices framework function UTTypeCopyAllTagsWithClass.
func UTTypeCopyDeclaration ¶
func UTTypeCopyDeclaration(inUTI corefoundation.CFStringRef) corefoundation.CFDictionaryRef
UTTypeCopyDeclaration calls the LaunchServices framework function UTTypeCopyDeclaration.
func UTTypeCopyDeclaringBundleURL ¶
func UTTypeCopyDeclaringBundleURL(inUTI corefoundation.CFStringRef) corefoundation.CFURLRef
UTTypeCopyDeclaringBundleURL calls the LaunchServices framework function UTTypeCopyDeclaringBundleURL.
func UTTypeCopyDescription ¶
func UTTypeCopyDescription(inUTI corefoundation.CFStringRef) corefoundation.CFStringRef
UTTypeCopyDescription calls the LaunchServices framework function UTTypeCopyDescription.
func UTTypeCopyPreferredTagWithClass ¶
func UTTypeCopyPreferredTagWithClass(inUTI corefoundation.CFStringRef, inTagClass corefoundation.CFStringRef) corefoundation.CFStringRef
UTTypeCopyPreferredTagWithClass calls the LaunchServices framework function UTTypeCopyPreferredTagWithClass.
func UTTypeCreateAllIdentifiersForTag ¶
func UTTypeCreateAllIdentifiersForTag(inTagClass corefoundation.CFStringRef, inTag corefoundation.CFStringRef, inConformingToUTI corefoundation.CFStringRef) corefoundation.CFArrayRef
UTTypeCreateAllIdentifiersForTag calls the LaunchServices framework function UTTypeCreateAllIdentifiersForTag.
func UTTypeCreatePreferredIdentifierForTag ¶
func UTTypeCreatePreferredIdentifierForTag(inTagClass corefoundation.CFStringRef, inTag corefoundation.CFStringRef, inConformingToUTI corefoundation.CFStringRef) corefoundation.CFStringRef
UTTypeCreatePreferredIdentifierForTag calls the LaunchServices framework function UTTypeCreatePreferredIdentifierForTag.
func UTTypeEqual ¶
func UTTypeEqual(inUTI1 corefoundation.CFStringRef, inUTI2 corefoundation.CFStringRef) uint8
UTTypeEqual calls the LaunchServices framework function UTTypeEqual.
func UTTypeIsDeclared ¶
func UTTypeIsDeclared(inUTI corefoundation.CFStringRef) uint8
UTTypeIsDeclared calls the LaunchServices framework function UTTypeIsDeclared.
func UTTypeIsDynamic ¶
func UTTypeIsDynamic(inUTI corefoundation.CFStringRef) uint8
UTTypeIsDynamic calls the LaunchServices framework function UTTypeIsDynamic.
func UnregisterIconRef ¶
UnregisterIconRef calls the LaunchServices framework function UnregisterIconRef.
func UpdateIconRef ¶
UpdateIconRef calls the LaunchServices framework function UpdateIconRef.
Types ¶
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type LSAcceptanceFlags ¶
type LSAcceptanceFlags uint32
Bitmask — values may be combined with |.
const ( KLSAcceptDefault LSAcceptanceFlags = 1 KLSAcceptAllowLoginUI LSAcceptanceFlags = 2 )
func (LSAcceptanceFlags) String ¶
func (e LSAcceptanceFlags) String() string
String returns the LSAcceptanceFlags constant's name, or its numeric form when the value is not a known constant.
type LSApplicationParameters ¶
type LSHandlerOptions ¶
type LSHandlerOptions uint32
Bitmask — values may be combined with |.
const ( // Deprecated: Creator codes are deprecated on OS X. KLSHandlerOptionsDefault LSHandlerOptions = 0 // Deprecated: Creator codes are deprecated on OS X. KLSHandlerOptionsIgnoreCreator LSHandlerOptions = 1 )
func LSGetHandlerOptionsForContentType ¶
func LSGetHandlerOptionsForContentType(inContentType corefoundation.CFStringRef) LSHandlerOptions
LSGetHandlerOptionsForContentType calls the LaunchServices framework function LSGetHandlerOptionsForContentType.
func (LSHandlerOptions) String ¶
func (e LSHandlerOptions) String() string
String returns the LSHandlerOptions constant's name, or its numeric form when the value is not a known constant.
type LSItemInfoFlags ¶
type LSItemInfoFlags uint32
Bitmask — values may be combined with |.
const ( KLSItemInfoIsPlainFile LSItemInfoFlags = 1 KLSItemInfoIsPackage LSItemInfoFlags = 2 KLSItemInfoIsApplication LSItemInfoFlags = 4 KLSItemInfoIsContainer LSItemInfoFlags = 8 KLSItemInfoIsAliasFile LSItemInfoFlags = 16 KLSItemInfoIsSymlink LSItemInfoFlags = 32 KLSItemInfoIsInvisible LSItemInfoFlags = 64 KLSItemInfoIsNativeApp LSItemInfoFlags = 128 KLSItemInfoIsClassicApp LSItemInfoFlags = 256 KLSItemInfoAppPrefersNative LSItemInfoFlags = 512 KLSItemInfoAppPrefersClassic LSItemInfoFlags = 1024 KLSItemInfoAppIsScriptable LSItemInfoFlags = 2048 KLSItemInfoIsVolume LSItemInfoFlags = 4096 KLSItemInfoExtensionIsHidden LSItemInfoFlags = 1048576 )
func (LSItemInfoFlags) String ¶
func (e LSItemInfoFlags) String() string
String returns the LSItemInfoFlags constant's name, or its numeric form when the value is not a known constant.
type LSItemInfoRecord ¶
type LSItemInfoRecord struct {
Flags LSItemInfoFlags
Filetype uint32
Creator uint32
Extension unsafe.Pointer
}
type LSLaunchFSRefSpec ¶
type LSLaunchFlags ¶
type LSLaunchFlags uint32
Bitmask — values may be combined with |.
const ( KLSLaunchDefaults LSLaunchFlags = 1 KLSLaunchAndPrint LSLaunchFlags = 2 KLSLaunchAndDisplayErrors LSLaunchFlags = 64 KLSLaunchDontAddToRecents LSLaunchFlags = 256 KLSLaunchDontSwitch LSLaunchFlags = 512 KLSLaunchAsync LSLaunchFlags = 65536 KLSLaunchNewInstance LSLaunchFlags = 524288 KLSLaunchAndHide LSLaunchFlags = 1048576 KLSLaunchAndHideOthers LSLaunchFlags = 2097152 )
func (LSLaunchFlags) String ¶
func (e LSLaunchFlags) String() string
String returns the LSLaunchFlags constant's name, or its numeric form when the value is not a known constant.
type LSLaunchURLSpec ¶
type LSRequestedInfo ¶
type LSRequestedInfo uint32
Bitmask — values may be combined with |.
const ( KLSRequestExtension LSRequestedInfo = 1 KLSRequestTypeCreator LSRequestedInfo = 2 KLSRequestBasicFlagsOnly LSRequestedInfo = 4 KLSRequestAppTypeFlags LSRequestedInfo = 8 KLSRequestAllFlags LSRequestedInfo = 16 KLSRequestIconAndKind LSRequestedInfo = 32 KLSRequestExtensionFlagsOnly LSRequestedInfo = 64 KLSRequestAllInfo LSRequestedInfo = 4294967295 )
func (LSRequestedInfo) String ¶
func (e LSRequestedInfo) String() string
String returns the LSRequestedInfo constant's name, or its numeric form when the value is not a known constant.
type LSRolesMask ¶
type LSRolesMask uint32
Bitmask — values may be combined with |.
const ( KLSRolesNone LSRolesMask = 1 KLSRolesViewer LSRolesMask = 2 KLSRolesEditor LSRolesMask = 4 KLSRolesShell LSRolesMask = 8 KLSRolesAll LSRolesMask = 4294967295 )
func (LSRolesMask) String ¶
func (e LSRolesMask) String() string
String returns the LSRolesMask constant's name, or its numeric form when the value is not a known constant.
type LaunchDataType ¶ added in v0.17.0
type LaunchDataType int32
const ( LaunchDataTypeDictionary LaunchDataType = 1 LaunchDataTypeArray LaunchDataType = 2 LaunchDataTypeFd LaunchDataType = 3 LaunchDataTypeInteger LaunchDataType = 4 LaunchDataTypeReal LaunchDataType = 5 LaunchDataTypeBool LaunchDataType = 6 LaunchDataTypeString LaunchDataType = 7 LaunchDataTypeOpaque LaunchDataType = 8 LaunchDataTypeErrno LaunchDataType = 9 LaunchDataTypeMachport LaunchDataType = 10 )
func (LaunchDataType) String ¶ added in v0.17.0
func (e LaunchDataType) String() string
String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type OpaqueIconRef ¶
type OpaqueIconRef struct{}
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.