launchservices

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Rendered for darwin/amd64

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

View Source
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
	KGenericSharedLibaryIcon             = 1936223330
	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
	KInternetLocationAppleShareIcon      = 1768710502
	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
	KLSDataUnavailableErr                = -10813
	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
	KSharedBadgeIcon                   = 1935828071
	KSharedFolderIcon                  = 1936221804
	KSharedFolderIconResource          = -3978
	KSharedLibrariesFolderIcon         = -999528094
	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
	SharedFolderIconResource           = -3978
	StartupFolderIconResource          = -3981
	SystemFolderIconResource           = -3983
	TrashIconResource                  = -3993
)

Variables

This section is empty.

Functions

func AcquireIconRef

func AcquireIconRef(theIconRef IconRef) int16

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

func GetCustomIconsEnabled(vRefNum int16) (result int16, customIconsEnabled uint8)

GetCustomIconsEnabled calls the LaunchServices framework function GetCustomIconsEnabled.

func GetIconRef

func GetIconRef(vRefNum int16, creator int, iconType int, theIconRef unsafe.Pointer) int16

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

func GetIconRefOwners(theIconRef IconRef) (result int16, owners uint16)

GetIconRefOwners calls the LaunchServices framework function GetIconRefOwners.

func IsDataAvailableInIconRef

func IsDataAvailableInIconRef(inIconKind int, inIconRef IconRef) uint8

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

func IsValidIconRef(theIconRef IconRef) uint8

IsValidIconRef calls the LaunchServices framework function IsValidIconRef.

func KLSItemContentType

func KLSItemContentType() obj.Object

KLSItemContentType returns the value of the constant kLSItemContentType.

func KLSItemDisplayKind

func KLSItemDisplayKind() obj.Object

KLSItemDisplayKind returns the value of the constant kLSItemDisplayKind.

func KLSItemDisplayName

func KLSItemDisplayName() obj.Object

KLSItemDisplayName returns the value of the constant kLSItemDisplayName.

func KLSItemExtension

func KLSItemExtension() obj.Object

KLSItemExtension returns the value of the constant kLSItemExtension.

func KLSItemExtensionIsHidden

func KLSItemExtensionIsHidden() obj.Object

KLSItemExtensionIsHidden returns the value of the constant kLSItemExtensionIsHidden.

func KLSItemFileCreator

func KLSItemFileCreator() obj.Object

KLSItemFileCreator returns the value of the constant kLSItemFileCreator.

func KLSItemFileType

func KLSItemFileType() obj.Object

KLSItemFileType returns the value of the constant kLSItemFileType.

func KLSItemIsInvisible

func KLSItemIsInvisible() obj.Object

KLSItemIsInvisible returns the value of the constant kLSItemIsInvisible.

func KLSItemQuarantineProperties

func KLSItemQuarantineProperties() obj.Object

KLSItemQuarantineProperties returns the value of the constant kLSItemQuarantineProperties.

func KLSItemRoleHandlerDisplayName

func KLSItemRoleHandlerDisplayName() obj.Object

KLSItemRoleHandlerDisplayName returns the value of the constant kLSItemRoleHandlerDisplayName.

func KLSQuarantineAgentBundleIdentifierKey

func KLSQuarantineAgentBundleIdentifierKey() obj.Object

KLSQuarantineAgentBundleIdentifierKey returns the value of the constant kLSQuarantineAgentBundleIdentifierKey.

func KLSQuarantineAgentNameKey

func KLSQuarantineAgentNameKey() obj.Object

KLSQuarantineAgentNameKey returns the value of the constant kLSQuarantineAgentNameKey.

func KLSQuarantineDataURLKey

func KLSQuarantineDataURLKey() obj.Object

KLSQuarantineDataURLKey returns the value of the constant kLSQuarantineDataURLKey.

func KLSQuarantineOriginURLKey

func KLSQuarantineOriginURLKey() obj.Object

KLSQuarantineOriginURLKey returns the value of the constant kLSQuarantineOriginURLKey.

func KLSQuarantineTimeStampKey

func KLSQuarantineTimeStampKey() obj.Object

KLSQuarantineTimeStampKey returns the value of the constant kLSQuarantineTimeStampKey.

func KLSQuarantineTypeCalendarEventAttachment

func KLSQuarantineTypeCalendarEventAttachment() obj.Object

KLSQuarantineTypeCalendarEventAttachment returns the value of the constant kLSQuarantineTypeCalendarEventAttachment.

func KLSQuarantineTypeEmailAttachment

func KLSQuarantineTypeEmailAttachment() obj.Object

KLSQuarantineTypeEmailAttachment returns the value of the constant kLSQuarantineTypeEmailAttachment.

func KLSQuarantineTypeInstantMessageAttachment

func KLSQuarantineTypeInstantMessageAttachment() obj.Object

KLSQuarantineTypeInstantMessageAttachment returns the value of the constant kLSQuarantineTypeInstantMessageAttachment.

func KLSQuarantineTypeKey

func KLSQuarantineTypeKey() obj.Object

KLSQuarantineTypeKey returns the value of the constant kLSQuarantineTypeKey.

func KLSQuarantineTypeOtherAttachment

func KLSQuarantineTypeOtherAttachment() obj.Object

KLSQuarantineTypeOtherAttachment returns the value of the constant kLSQuarantineTypeOtherAttachment.

func KLSQuarantineTypeOtherDownload

func KLSQuarantineTypeOtherDownload() obj.Object

KLSQuarantineTypeOtherDownload returns the value of the constant kLSQuarantineTypeOtherDownload.

func KLSQuarantineTypeWebDownload

func KLSQuarantineTypeWebDownload() obj.Object

KLSQuarantineTypeWebDownload returns the value of the constant kLSQuarantineTypeWebDownload.

func KUTExportedTypeDeclarationsKey

func KUTExportedTypeDeclarationsKey() obj.Object

KUTExportedTypeDeclarationsKey returns the value of the constant kUTExportedTypeDeclarationsKey.

func KUTImportedTypeDeclarationsKey

func KUTImportedTypeDeclarationsKey() obj.Object

KUTImportedTypeDeclarationsKey returns the value of the constant kUTImportedTypeDeclarationsKey.

func KUTTagClassFilenameExtension

func KUTTagClassFilenameExtension() obj.Object

KUTTagClassFilenameExtension returns the value of the constant kUTTagClassFilenameExtension.

func KUTTagClassMIMEType

func KUTTagClassMIMEType() obj.Object

KUTTagClassMIMEType returns the value of the constant kUTTagClassMIMEType.

func KUTTagClassNSPboardType

func KUTTagClassNSPboardType() obj.Object

KUTTagClassNSPboardType returns the value of the constant kUTTagClassNSPboardType.

func KUTTagClassOSType

func KUTTagClassOSType() obj.Object

KUTTagClassOSType returns the value of the constant kUTTagClassOSType.

func KUTType3DContent

func KUTType3DContent() obj.Object

KUTType3DContent returns the value of the constant kUTType3DContent.

func KUTTypeAVIMovie

func KUTTypeAVIMovie() obj.Object

KUTTypeAVIMovie returns the value of the constant kUTTypeAVIMovie.

func KUTTypeAliasFile

func KUTTypeAliasFile() obj.Object

KUTTypeAliasFile returns the value of the constant kUTTypeAliasFile.

func KUTTypeAliasRecord

func KUTTypeAliasRecord() obj.Object

KUTTypeAliasRecord returns the value of the constant kUTTypeAliasRecord.

func KUTTypeAppleICNS

func KUTTypeAppleICNS() obj.Object

KUTTypeAppleICNS returns the value of the constant kUTTypeAppleICNS.

func KUTTypeAppleProtectedMPEG4Audio

func KUTTypeAppleProtectedMPEG4Audio() obj.Object

KUTTypeAppleProtectedMPEG4Audio returns the value of the constant kUTTypeAppleProtectedMPEG4Audio.

func KUTTypeAppleProtectedMPEG4Video

func KUTTypeAppleProtectedMPEG4Video() obj.Object

KUTTypeAppleProtectedMPEG4Video returns the value of the constant kUTTypeAppleProtectedMPEG4Video.

func KUTTypeAppleScript

func KUTTypeAppleScript() obj.Object

KUTTypeAppleScript returns the value of the constant kUTTypeAppleScript.

func KUTTypeApplication

func KUTTypeApplication() obj.Object

KUTTypeApplication returns the value of the constant kUTTypeApplication.

func KUTTypeApplicationBundle

func KUTTypeApplicationBundle() obj.Object

KUTTypeApplicationBundle returns the value of the constant kUTTypeApplicationBundle.

func KUTTypeApplicationFile

func KUTTypeApplicationFile() obj.Object

KUTTypeApplicationFile returns the value of the constant kUTTypeApplicationFile.

func KUTTypeArchive

func KUTTypeArchive() obj.Object

KUTTypeArchive returns the value of the constant kUTTypeArchive.

func KUTTypeAssemblyLanguageSource

func KUTTypeAssemblyLanguageSource() obj.Object

KUTTypeAssemblyLanguageSource returns the value of the constant kUTTypeAssemblyLanguageSource.

func KUTTypeAudio

func KUTTypeAudio() obj.Object

KUTTypeAudio returns the value of the constant kUTTypeAudio.

func KUTTypeAudioInterchangeFileFormat

func KUTTypeAudioInterchangeFileFormat() obj.Object

KUTTypeAudioInterchangeFileFormat returns the value of the constant kUTTypeAudioInterchangeFileFormat.

func KUTTypeAudiovisualContent

func KUTTypeAudiovisualContent() obj.Object

KUTTypeAudiovisualContent returns the value of the constant kUTTypeAudiovisualContent.

func KUTTypeBMP

func KUTTypeBMP() obj.Object

KUTTypeBMP returns the value of the constant kUTTypeBMP.

func KUTTypeBinaryPropertyList

func KUTTypeBinaryPropertyList() obj.Object

KUTTypeBinaryPropertyList returns the value of the constant kUTTypeBinaryPropertyList.

func KUTTypeBookmark

func KUTTypeBookmark() obj.Object

KUTTypeBookmark returns the value of the constant kUTTypeBookmark.

func KUTTypeBundle

func KUTTypeBundle() obj.Object

KUTTypeBundle returns the value of the constant kUTTypeBundle.

func KUTTypeBzip2Archive

func KUTTypeBzip2Archive() obj.Object

KUTTypeBzip2Archive returns the value of the constant kUTTypeBzip2Archive.

func KUTTypeCHeader

func KUTTypeCHeader() obj.Object

KUTTypeCHeader returns the value of the constant kUTTypeCHeader.

func KUTTypeCPlusPlusHeader

func KUTTypeCPlusPlusHeader() obj.Object

KUTTypeCPlusPlusHeader returns the value of the constant kUTTypeCPlusPlusHeader.

func KUTTypeCPlusPlusSource

func KUTTypeCPlusPlusSource() obj.Object

KUTTypeCPlusPlusSource returns the value of the constant kUTTypeCPlusPlusSource.

func KUTTypeCSource

func KUTTypeCSource() obj.Object

KUTTypeCSource returns the value of the constant kUTTypeCSource.

func KUTTypeCalendarEvent

func KUTTypeCalendarEvent() obj.Object

KUTTypeCalendarEvent returns the value of the constant kUTTypeCalendarEvent.

func KUTTypeCommaSeparatedText

func KUTTypeCommaSeparatedText() obj.Object

KUTTypeCommaSeparatedText returns the value of the constant kUTTypeCommaSeparatedText.

func KUTTypeCompositeContent

func KUTTypeCompositeContent() obj.Object

KUTTypeCompositeContent returns the value of the constant kUTTypeCompositeContent.

func KUTTypeConformsToKey

func KUTTypeConformsToKey() obj.Object

KUTTypeConformsToKey returns the value of the constant kUTTypeConformsToKey.

func KUTTypeContact

func KUTTypeContact() obj.Object

KUTTypeContact returns the value of the constant kUTTypeContact.

func KUTTypeContent

func KUTTypeContent() obj.Object

KUTTypeContent returns the value of the constant kUTTypeContent.

func KUTTypeData

func KUTTypeData() obj.Object

KUTTypeData returns the value of the constant kUTTypeData.

func KUTTypeDatabase

func KUTTypeDatabase() obj.Object

KUTTypeDatabase returns the value of the constant kUTTypeDatabase.

func KUTTypeDelimitedText

func KUTTypeDelimitedText() obj.Object

KUTTypeDelimitedText returns the value of the constant kUTTypeDelimitedText.

func KUTTypeDescriptionKey

func KUTTypeDescriptionKey() obj.Object

KUTTypeDescriptionKey returns the value of the constant kUTTypeDescriptionKey.

func KUTTypeDirectory

func KUTTypeDirectory() obj.Object

KUTTypeDirectory returns the value of the constant kUTTypeDirectory.

func KUTTypeDiskImage

func KUTTypeDiskImage() obj.Object

KUTTypeDiskImage returns the value of the constant kUTTypeDiskImage.

func KUTTypeElectronicPublication

func KUTTypeElectronicPublication() obj.Object

KUTTypeElectronicPublication returns the value of the constant kUTTypeElectronicPublication.

func KUTTypeEmailMessage

func KUTTypeEmailMessage() obj.Object

KUTTypeEmailMessage returns the value of the constant kUTTypeEmailMessage.

func KUTTypeExecutable

func KUTTypeExecutable() obj.Object

KUTTypeExecutable returns the value of the constant kUTTypeExecutable.

func KUTTypeFileURL

func KUTTypeFileURL() obj.Object

KUTTypeFileURL returns the value of the constant kUTTypeFileURL.

func KUTTypeFlatRTFD

func KUTTypeFlatRTFD() obj.Object

KUTTypeFlatRTFD returns the value of the constant kUTTypeFlatRTFD.

func KUTTypeFolder

func KUTTypeFolder() obj.Object

KUTTypeFolder returns the value of the constant kUTTypeFolder.

func KUTTypeFont

func KUTTypeFont() obj.Object

KUTTypeFont returns the value of the constant kUTTypeFont.

func KUTTypeFramework

func KUTTypeFramework() obj.Object

KUTTypeFramework returns the value of the constant kUTTypeFramework.

func KUTTypeGIF

func KUTTypeGIF() obj.Object

KUTTypeGIF returns the value of the constant kUTTypeGIF.

func KUTTypeGNUZipArchive

func KUTTypeGNUZipArchive() obj.Object

KUTTypeGNUZipArchive returns the value of the constant kUTTypeGNUZipArchive.

func KUTTypeHTML

func KUTTypeHTML() obj.Object

KUTTypeHTML returns the value of the constant kUTTypeHTML.

func KUTTypeICO

func KUTTypeICO() obj.Object

KUTTypeICO returns the value of the constant kUTTypeICO.

func KUTTypeIconFileKey

func KUTTypeIconFileKey() obj.Object

KUTTypeIconFileKey returns the value of the constant kUTTypeIconFileKey.

func KUTTypeIdentifierKey

func KUTTypeIdentifierKey() obj.Object

KUTTypeIdentifierKey returns the value of the constant kUTTypeIdentifierKey.

func KUTTypeImage

func KUTTypeImage() obj.Object

KUTTypeImage returns the value of the constant kUTTypeImage.

func KUTTypeInkText

func KUTTypeInkText() obj.Object

KUTTypeInkText returns the value of the constant kUTTypeInkText.

func KUTTypeInternetLocation

func KUTTypeInternetLocation() obj.Object

KUTTypeInternetLocation returns the value of the constant kUTTypeInternetLocation.

func KUTTypeItem

func KUTTypeItem() obj.Object

KUTTypeItem returns the value of the constant kUTTypeItem.

func KUTTypeJPEG

func KUTTypeJPEG() obj.Object

KUTTypeJPEG returns the value of the constant kUTTypeJPEG.

func KUTTypeJPEG2000

func KUTTypeJPEG2000() obj.Object

KUTTypeJPEG2000 returns the value of the constant kUTTypeJPEG2000.

func KUTTypeJSON

func KUTTypeJSON() obj.Object

KUTTypeJSON returns the value of the constant kUTTypeJSON.

func KUTTypeJavaArchive

func KUTTypeJavaArchive() obj.Object

KUTTypeJavaArchive returns the value of the constant kUTTypeJavaArchive.

func KUTTypeJavaClass

func KUTTypeJavaClass() obj.Object

KUTTypeJavaClass returns the value of the constant kUTTypeJavaClass.

func KUTTypeJavaScript

func KUTTypeJavaScript() obj.Object

KUTTypeJavaScript returns the value of the constant kUTTypeJavaScript.

func KUTTypeJavaSource

func KUTTypeJavaSource() obj.Object

KUTTypeJavaSource returns the value of the constant kUTTypeJavaSource.

func KUTTypeLivePhoto

func KUTTypeLivePhoto() obj.Object

KUTTypeLivePhoto returns the value of the constant kUTTypeLivePhoto.

func KUTTypeLog

func KUTTypeLog() obj.Object

KUTTypeLog returns the value of the constant kUTTypeLog.

func KUTTypeM3UPlaylist

func KUTTypeM3UPlaylist() obj.Object

KUTTypeM3UPlaylist returns the value of the constant kUTTypeM3UPlaylist.

func KUTTypeMIDIAudio

func KUTTypeMIDIAudio() obj.Object

KUTTypeMIDIAudio returns the value of the constant kUTTypeMIDIAudio.

func KUTTypeMP3

func KUTTypeMP3() obj.Object

KUTTypeMP3 returns the value of the constant kUTTypeMP3.

func KUTTypeMPEG

func KUTTypeMPEG() obj.Object

KUTTypeMPEG returns the value of the constant kUTTypeMPEG.

func KUTTypeMPEG2TransportStream

func KUTTypeMPEG2TransportStream() obj.Object

KUTTypeMPEG2TransportStream returns the value of the constant kUTTypeMPEG2TransportStream.

func KUTTypeMPEG2Video

func KUTTypeMPEG2Video() obj.Object

KUTTypeMPEG2Video returns the value of the constant kUTTypeMPEG2Video.

func KUTTypeMPEG4

func KUTTypeMPEG4() obj.Object

KUTTypeMPEG4 returns the value of the constant kUTTypeMPEG4.

func KUTTypeMPEG4Audio

func KUTTypeMPEG4Audio() obj.Object

KUTTypeMPEG4Audio returns the value of the constant kUTTypeMPEG4Audio.

func KUTTypeMessage

func KUTTypeMessage() obj.Object

KUTTypeMessage returns the value of the constant kUTTypeMessage.

func KUTTypeMountPoint

func KUTTypeMountPoint() obj.Object

KUTTypeMountPoint returns the value of the constant kUTTypeMountPoint.

func KUTTypeMovie

func KUTTypeMovie() obj.Object

KUTTypeMovie returns the value of the constant kUTTypeMovie.

func KUTTypeOSAScript

func KUTTypeOSAScript() obj.Object

KUTTypeOSAScript returns the value of the constant kUTTypeOSAScript.

func KUTTypeOSAScriptBundle

func KUTTypeOSAScriptBundle() obj.Object

KUTTypeOSAScriptBundle returns the value of the constant kUTTypeOSAScriptBundle.

func KUTTypeObjectiveCPlusPlusSource

func KUTTypeObjectiveCPlusPlusSource() obj.Object

KUTTypeObjectiveCPlusPlusSource returns the value of the constant kUTTypeObjectiveCPlusPlusSource.

func KUTTypeObjectiveCSource

func KUTTypeObjectiveCSource() obj.Object

KUTTypeObjectiveCSource returns the value of the constant kUTTypeObjectiveCSource.

func KUTTypePDF

func KUTTypePDF() obj.Object

KUTTypePDF returns the value of the constant kUTTypePDF.

func KUTTypePHPScript

func KUTTypePHPScript() obj.Object

KUTTypePHPScript returns the value of the constant kUTTypePHPScript.

func KUTTypePICT

func KUTTypePICT() obj.Object

KUTTypePICT returns the value of the constant kUTTypePICT.

func KUTTypePKCS12

func KUTTypePKCS12() obj.Object

KUTTypePKCS12 returns the value of the constant kUTTypePKCS12.

func KUTTypePNG

func KUTTypePNG() obj.Object

KUTTypePNG returns the value of the constant kUTTypePNG.

func KUTTypePackage

func KUTTypePackage() obj.Object

KUTTypePackage returns the value of the constant kUTTypePackage.

func KUTTypePerlScript

func KUTTypePerlScript() obj.Object

KUTTypePerlScript returns the value of the constant kUTTypePerlScript.

func KUTTypePlainText

func KUTTypePlainText() obj.Object

KUTTypePlainText returns the value of the constant kUTTypePlainText.

func KUTTypePlaylist

func KUTTypePlaylist() obj.Object

KUTTypePlaylist returns the value of the constant kUTTypePlaylist.

func KUTTypePluginBundle

func KUTTypePluginBundle() obj.Object

KUTTypePluginBundle returns the value of the constant kUTTypePluginBundle.

func KUTTypePresentation

func KUTTypePresentation() obj.Object

KUTTypePresentation returns the value of the constant kUTTypePresentation.

func KUTTypePropertyList

func KUTTypePropertyList() obj.Object

KUTTypePropertyList returns the value of the constant kUTTypePropertyList.

func KUTTypePythonScript

func KUTTypePythonScript() obj.Object

KUTTypePythonScript returns the value of the constant kUTTypePythonScript.

func KUTTypeQuickLookGenerator

func KUTTypeQuickLookGenerator() obj.Object

KUTTypeQuickLookGenerator returns the value of the constant kUTTypeQuickLookGenerator.

func KUTTypeQuickTimeImage

func KUTTypeQuickTimeImage() obj.Object

KUTTypeQuickTimeImage returns the value of the constant kUTTypeQuickTimeImage.

func KUTTypeQuickTimeMovie

func KUTTypeQuickTimeMovie() obj.Object

KUTTypeQuickTimeMovie returns the value of the constant kUTTypeQuickTimeMovie.

func KUTTypeRTF

func KUTTypeRTF() obj.Object

KUTTypeRTF returns the value of the constant kUTTypeRTF.

func KUTTypeRTFD

func KUTTypeRTFD() obj.Object

KUTTypeRTFD returns the value of the constant kUTTypeRTFD.

func KUTTypeRawImage

func KUTTypeRawImage() obj.Object

KUTTypeRawImage returns the value of the constant kUTTypeRawImage.

func KUTTypeReferenceURLKey

func KUTTypeReferenceURLKey() obj.Object

KUTTypeReferenceURLKey returns the value of the constant kUTTypeReferenceURLKey.

func KUTTypeResolvable

func KUTTypeResolvable() obj.Object

KUTTypeResolvable returns the value of the constant kUTTypeResolvable.

func KUTTypeRubyScript

func KUTTypeRubyScript() obj.Object

KUTTypeRubyScript returns the value of the constant kUTTypeRubyScript.

func KUTTypeScalableVectorGraphics

func KUTTypeScalableVectorGraphics() obj.Object

KUTTypeScalableVectorGraphics returns the value of the constant kUTTypeScalableVectorGraphics.

func KUTTypeScript

func KUTTypeScript() obj.Object

KUTTypeScript returns the value of the constant kUTTypeScript.

func KUTTypeShellScript

func KUTTypeShellScript() obj.Object

KUTTypeShellScript returns the value of the constant kUTTypeShellScript.

func KUTTypeSourceCode

func KUTTypeSourceCode() obj.Object

KUTTypeSourceCode returns the value of the constant kUTTypeSourceCode.

func KUTTypeSpotlightImporter

func KUTTypeSpotlightImporter() obj.Object

KUTTypeSpotlightImporter returns the value of the constant kUTTypeSpotlightImporter.

func KUTTypeSpreadsheet

func KUTTypeSpreadsheet() obj.Object

KUTTypeSpreadsheet returns the value of the constant kUTTypeSpreadsheet.

func KUTTypeSwiftSource

func KUTTypeSwiftSource() obj.Object

KUTTypeSwiftSource returns the value of the constant kUTTypeSwiftSource.

func KUTTypeSymLink() obj.Object

KUTTypeSymLink returns the value of the constant kUTTypeSymLink.

func KUTTypeSystemPreferencesPane

func KUTTypeSystemPreferencesPane() obj.Object

KUTTypeSystemPreferencesPane returns the value of the constant kUTTypeSystemPreferencesPane.

func KUTTypeTIFF

func KUTTypeTIFF() obj.Object

KUTTypeTIFF returns the value of the constant kUTTypeTIFF.

func KUTTypeTXNTextAndMultimediaData

func KUTTypeTXNTextAndMultimediaData() obj.Object

KUTTypeTXNTextAndMultimediaData returns the value of the constant kUTTypeTXNTextAndMultimediaData.

func KUTTypeTabSeparatedText

func KUTTypeTabSeparatedText() obj.Object

KUTTypeTabSeparatedText returns the value of the constant kUTTypeTabSeparatedText.

func KUTTypeTagSpecificationKey

func KUTTypeTagSpecificationKey() obj.Object

KUTTypeTagSpecificationKey returns the value of the constant kUTTypeTagSpecificationKey.

func KUTTypeText

func KUTTypeText() obj.Object

KUTTypeText returns the value of the constant kUTTypeText.

func KUTTypeToDoItem

func KUTTypeToDoItem() obj.Object

KUTTypeToDoItem returns the value of the constant kUTTypeToDoItem.

func KUTTypeURL

func KUTTypeURL() obj.Object

KUTTypeURL returns the value of the constant kUTTypeURL.

func KUTTypeURLBookmarkData

func KUTTypeURLBookmarkData() obj.Object

KUTTypeURLBookmarkData returns the value of the constant kUTTypeURLBookmarkData.

func KUTTypeUTF8PlainText

func KUTTypeUTF8PlainText() obj.Object

KUTTypeUTF8PlainText returns the value of the constant kUTTypeUTF8PlainText.

func KUTTypeUTF8TabSeparatedText

func KUTTypeUTF8TabSeparatedText() obj.Object

KUTTypeUTF8TabSeparatedText returns the value of the constant kUTTypeUTF8TabSeparatedText.

func KUTTypeUTF16ExternalPlainText

func KUTTypeUTF16ExternalPlainText() obj.Object

KUTTypeUTF16ExternalPlainText returns the value of the constant kUTTypeUTF16ExternalPlainText.

func KUTTypeUTF16PlainText

func KUTTypeUTF16PlainText() obj.Object

KUTTypeUTF16PlainText returns the value of the constant kUTTypeUTF16PlainText.

func KUTTypeUnixExecutable

func KUTTypeUnixExecutable() obj.Object

KUTTypeUnixExecutable returns the value of the constant kUTTypeUnixExecutable.

func KUTTypeVCard

func KUTTypeVCard() obj.Object

KUTTypeVCard returns the value of the constant kUTTypeVCard.

func KUTTypeVersionKey

func KUTTypeVersionKey() obj.Object

KUTTypeVersionKey returns the value of the constant kUTTypeVersionKey.

func KUTTypeVideo

func KUTTypeVideo() obj.Object

KUTTypeVideo returns the value of the constant kUTTypeVideo.

func KUTTypeVolume

func KUTTypeVolume() obj.Object

KUTTypeVolume returns the value of the constant kUTTypeVolume.

func KUTTypeWaveformAudio

func KUTTypeWaveformAudio() obj.Object

KUTTypeWaveformAudio returns the value of the constant kUTTypeWaveformAudio.

func KUTTypeWebArchive

func KUTTypeWebArchive() obj.Object

KUTTypeWebArchive returns the value of the constant kUTTypeWebArchive.

func KUTTypeWindowsExecutable

func KUTTypeWindowsExecutable() obj.Object

KUTTypeWindowsExecutable returns the value of the constant kUTTypeWindowsExecutable.

func KUTTypeX509Certificate

func KUTTypeX509Certificate() obj.Object

KUTTypeX509Certificate returns the value of the constant kUTTypeX509Certificate.

func KUTTypeXML

func KUTTypeXML() obj.Object

KUTTypeXML returns the value of the constant kUTTypeXML.

func KUTTypeXMLPropertyList

func KUTTypeXMLPropertyList() obj.Object

KUTTypeXMLPropertyList returns the value of the constant kUTTypeXMLPropertyList.

func KUTTypeXPCService

func KUTTypeXPCService() obj.Object

KUTTypeXPCService returns the value of the constant kUTTypeXPCService.

func KUTTypeZipArchive

func KUTTypeZipArchive() obj.Object

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

func LSCopyDisplayNameForURL(inURL obj.Object) (obj.Object, error)

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

func LSCopyKindStringForMIMEType(inMIMEType obj.Object) (obj.Object, error)

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

func LSCopyKindStringForURL(inURL obj.Object) (obj.Object, error)

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

func LSOpenApplication(appParams unsafe.Pointer, outPSN unsafe.Pointer) int

LSOpenApplication calls the LaunchServices framework function LSOpenApplication.

func LSOpenCFURLRef

func LSOpenCFURLRef(inURL obj.Object) (obj.Object, error)

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

func LSOpenFromURLSpec(inLaunchSpec unsafe.Pointer, outLaunchedURL unsafe.Pointer) int

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

func LSRegisterURL(inURL obj.Object, inUpdate uint8) error

LSRegisterURL reports an error if the LaunchServices framework function LSRegisterURL fails.

func LSSetDefaultHandlerForURLScheme

func LSSetDefaultHandlerForURLScheme(inURLScheme obj.Object, inHandlerBundleID obj.Object) error

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

func LSSetExtensionHiddenForURL(inURL obj.Object, inHide uint8) error

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

func OverrideIconRef(oldIconRef IconRef, newIconRef IconRef) int16

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

func ReleaseIconRef(theIconRef IconRef) int16

ReleaseIconRef calls the LaunchServices framework function ReleaseIconRef.

func RemoveIconRefOverride

func RemoveIconRefOverride(theIconRef IconRef) int16

RemoveIconRefOverride calls the LaunchServices framework function RemoveIconRefOverride.

func SetCustomIconsEnabled

func SetCustomIconsEnabled(vRefNum int16, enableCustomIcons uint8) int16

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

func UnregisterIconRef(creator int, iconType int) int16

UnregisterIconRef calls the LaunchServices framework function UnregisterIconRef.

func UpdateIconRef

func UpdateIconRef(theIconRef IconRef) int16

UpdateIconRef calls the LaunchServices framework function UpdateIconRef.

Types

type Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

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

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 EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID 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 Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type IconRef added in v0.18.0

type IconRef struct{ obj.Object }

IconRef is a handle for the opaque IconRef type.

func (IconRef) IsNil added in v0.18.0

func (h IconRef) IsNil() bool

IsNil reports whether IconRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype 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 LSApplicationParameters struct {
	Version           int
	Flags             LSLaunchFlags
	Application       unsafe.Pointer
	AsyncLaunchRefCon unsafe.Pointer
	Environment       unsafe.Pointer
	Argv              unsafe.Pointer
	InitialEvent      unsafe.Pointer
}

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 LSLaunchFSRefSpec struct {
	AppRef         unsafe.Pointer
	NumDocs        uint
	ItemRefs       unsafe.Pointer
	PassThruParams unsafe.Pointer
	LaunchFlags    LSLaunchFlags
	AsyncRefCon    unsafe.Pointer
}

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 LSLaunchURLSpec struct {
	AppURL         unsafe.Pointer
	ItemURLs       unsafe.Pointer
	PassThruParams unsafe.Pointer
	LaunchFlags    LSLaunchFlags
	AsyncRefCon    unsafe.Pointer
}

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
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

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
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

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 QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type Tag added in v0.17.0

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type 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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL