Carbon Core Functions

No overview available.

Topics

Functions

func CreateCompDescriptor(DescType, UnsafeMutablePointer<AEDesc>!, UnsafeMutablePointer<AEDesc>!, Bool, UnsafeMutablePointer<AEDesc>!) -> OSErr

Creates a comparison descriptor that specifies how to compare one or more Apple event objects with either another Apple event object or a descriptor.

func CreateLogicalDescriptor(UnsafeMutablePointer<AEDescList>!, DescType, Bool, UnsafeMutablePointer<AEDesc>!) -> OSErr

Creates a logical descriptor that specifies a logical operator and one or more logical terms for the Apple Event Manager to evaluate.

func CreateObjSpecifier(DescType, UnsafeMutablePointer<AEDesc>!, DescType, UnsafeMutablePointer<AEDesc>!, Bool, UnsafeMutablePointer<AEDesc>!) -> OSErr

Assembles an object specifier that identifies one or more Apple event objects, from other descriptors.

func CreateOffsetDescriptor(Int, UnsafeMutablePointer<AEDesc>!) -> OSErr

Creates an offset descriptor that specifies the position of an element in relation to the beginning or end of its container.

func CreateRangeDescriptor(UnsafeMutablePointer<AEDesc>!, UnsafeMutablePointer<AEDesc>!, Bool, UnsafeMutablePointer<AEDesc>!) -> OSErr

Creates a range descriptor that specifies a series of consecutive elements in the same container.

func DCSCopyTextDefinition(DCSDictionary?, CFString, CFRange) -> Unmanaged<CFString>?

Returns the definition associated with the provided text range.

func DCSGetTermRangeInString(DCSDictionary?, CFString, CFIndex) -> CFRange

Determines the range of the longest word or phrase with respect to an offset.

func DisposeAECoerceDescUPP(AECoerceDescUPP!)

Disposes of a universal procedure pointer to a function that coerces data stored in a descriptor.

func DisposeAECoercePtrUPP(AECoercePtrUPP!)

Disposes of a universal procedure pointer to a function that coerces data stored in a buffer.

func DisposeAEDisposeExternalUPP(AEDisposeExternalUPP!)

Disposes of a universal procedure pointer to a function that disposes of data supplied to the AECreateDescFromExternalPtr function.

func DisposeAEEventHandlerUPP(AEEventHandlerUPP!)

Disposes of a universal procedure pointer to an event handler function.

func DisposeOSLAccessorUPP(OSLAccessorUPP!)

Disposes of a universal procedure pointer to an object accessor function.

func DisposeOSLAdjustMarksUPP(OSLAdjustMarksUPP!)

Disposes of a universal procedure pointer to an object callback adjust marks function.

func DisposeOSLCompareUPP(OSLCompareUPP!)

Disposes of a universal procedure pointer to an object callback comparison function.

func DisposeOSLCountUPP(OSLCountUPP!)

Disposes of a universal procedure pointer to an object callback count function.

func DisposeOSLDisposeTokenUPP(OSLDisposeTokenUPP!)

Disposes of a universal procedure pointer to an object callback dispose token function.

func DisposeOSLGetErrDescUPP(OSLGetErrDescUPP!)

Disposes of a universal procedure pointer to an object callback get error descriptor function.

func DisposeOSLGetMarkTokenUPP(OSLGetMarkTokenUPP!)

Disposes of a universal procedure pointer to an object callback get mark function.

func DisposeOSLMarkUPP(OSLMarkUPP!)

Disposes of a universal procedure pointer to an object callback mark function.

func InvokeAECoerceDescUPP(UnsafePointer<AEDesc>!, DescType, SRefCon!, UnsafeMutablePointer<AEDesc>!, AECoerceDescUPP!) -> OSErr

Calls a universal procedure pointer to a function that coerces data stored in a descriptor.

func InvokeOSLAdjustMarksUPP(Int, Int, UnsafePointer<AEDesc>!, OSLAdjustMarksUPP!) -> OSErr

Calls an object callback adjust marks universal procedure pointer.

func InvokeOSLDisposeTokenUPP(UnsafeMutablePointer<AEDesc>!, OSLDisposeTokenUPP!) -> OSErr

Calls an object callback dispose token universal procedure pointer.

func InvokeOSLGetErrDescUPP(UnsafeMutablePointer<UnsafeMutablePointer<AEDesc>?>!, OSLGetErrDescUPP!) -> OSErr

Calls an object callback get error descriptor universal procedure pointer.

func NewAECoerceDescUPP(AECoerceDescProcPtr!) -> AECoerceDescUPP!

Creates a new universal procedure pointer to a function that coerces data stored in a descriptor.

func NewAECoercePtrUPP(AECoercePtrProcPtr!) -> AECoercePtrUPP!

Creates a new universal procedure pointer to a function that coerces data stored in a buffer.

func NewAEDisposeExternalUPP(AEDisposeExternalProcPtr!) -> AEDisposeExternalUPP!

Creates a new universal procedure pointer to a function that disposes of data stored in a buffer.

func NewAEEventHandlerUPP(AEEventHandlerProcPtr!) -> AEEventHandlerUPP!

Creates a new universal procedure pointer to an event handler function.

func NewOSLAccessorUPP(OSLAccessorProcPtr!) -> OSLAccessorUPP!

Creates a new universal procedure pointer to an object accessor function.

func NewOSLAdjustMarksUPP(OSLAdjustMarksProcPtr!) -> OSLAdjustMarksUPP!

Creates a new universal procedure pointer to an object callback adjust marks function.

func NewOSLCompareUPP(OSLCompareProcPtr!) -> OSLCompareUPP!

Creates a new universal procedure pointer to an object callback comparison function.

func NewOSLCountUPP(OSLCountProcPtr!) -> OSLCountUPP!

Creates a new universal procedure pointer to an object callback count function.

func NewOSLDisposeTokenUPP(OSLDisposeTokenProcPtr!) -> OSLDisposeTokenUPP!

Creates a new universal procedure pointer to an object callback dispose token function.

func NewOSLGetErrDescUPP(OSLGetErrDescProcPtr!) -> OSLGetErrDescUPP!

Creates a new universal procedure pointer to an object callback get error descriptor function.

func NewOSLGetMarkTokenUPP(OSLGetMarkTokenProcPtr!) -> OSLGetMarkTokenUPP!

Creates a new universal procedure pointer to an object callback get mark function.

func NewOSLMarkUPP(OSLMarkProcPtr!) -> OSLMarkUPP!

Creates a new universal procedure pointer to an object callback mark function.

func UTCreateStringForOSType(OSType) -> Unmanaged<CFString>

Encodes an OSType into a string suitable for use as a tag argument.

func UTGetOSTypeFromString(CFString) -> OSType

Decodes a tag string into an OSType.

func UTTypeConformsTo(CFString, CFString) -> Bool

Returns whether a uniform type identifier conforms to another uniform type identifier.

func UTTypeCopyDeclaringBundleURL(CFString) -> Unmanaged<CFURL>?

Returns the location of a bundle containing the declaration for a type.

func UTTypeCopyDescription(CFString) -> Unmanaged<CFString>?

Returns the localized, user-readable type description string associated with a uniform type identifier.

func UTTypeCopyPreferredTagWithClass(CFString, CFString) -> Unmanaged<CFString>?

Translates a uniform type identifier to a list of tags in a different type classification method.

func UTTypeCreateAllIdentifiersForTag(CFString, CFString, CFString?) -> Unmanaged<CFArray>?

Creates an array of all uniform type identifiers for the type indicated by the specified tag.

func UTTypeCreatePreferredIdentifierForTag(CFString, CFString, CFString?) -> Unmanaged<CFString>?

Creates a uniform type identifier for the type indicated by the specified tag.

func UTTypeEqual(CFString, CFString) -> Bool

Returns whether two uniform type identifiers are equal.

func vAEBuildParameters(UnsafeMutablePointer<AppleEvent>!, UnsafeMutablePointer<AEBuildError>!, UnsafePointer<Int8>!, CVaListPointer) -> OSStatus

Allows you to encapsulate calls to AEBuildParameters in your own stdarg-style wrapper routines, using techniques similar to those allowed by vsprintf.