CoreServices gathers low-level system services and core type definitions used across iOS, macOS, tvOS, watchOS, and visionOS, including Uniform Type Identifiers exposed through UTType. Working at this layer you describe and resolve item types, query metadata, and interact with system facilities such as Launch Services, where structures like LSItemInfoRecord, LSApplicationParameters, and LSLaunchURLSpec describe how documents and applications are identified and launched. The framework also surfaces Spotlight metadata through MDItem and the MDImporterInterfaceStruct and MDExporterInterfaceStruct importer interfaces, file-system change notifications via FSEventStreamContext, Apple event descriptors such as AEDesc and AEKeyDesc, and keyboard-layout data including UCKeyboardLayout and UCKeyStateRecord. These are foundational system primitives rather than high-level UI types, intended for code that inspects, classifies, and coordinates system resources.
Spotlight Metadata 11
Query, label, and import Spotlight metadata for files and items.
- ClMDItem@typedef MDItemRef
- ClMDLabel@typedef MDLabelRef
- ClMDQuery@typedef MDQueryRef
- StMDLabelDomain@typedef MDLabelDomain
- StMDQueryOptionFlagsConstants that specify options controlling how a Spotlight query runs.
- StMDQueryBatchingParams@typedef MDQueryBatchingParams
- StMDQuerySortOptionFlags@enum MDQuerySortOptionFlags
- StMDImporterInterfaceStructA structure that defines the interface a Spotlight metadata importer plug-in implements.
- StMDExporterInterfaceStructA structure that defines the interface a Spotlight metadata exporter plug-in implements.
- StMDImporterURLInterfaceStructA structure that defines a URL-based interface for a Spotlight metadata importer.
- StMDImporterBundleWrapperURLInterfaceStructA structure that defines a bundle-wrapper URL interface for a Spotlight metadata importer.
Launch Services 12
Identify, configure, and launch documents and applications, and manage shared file lists.
- ClLSSharedFileListAn object that represents a persistent, ordered list of shared file-system items.
- ClLSSharedFileListItemAn object that represents a single entry in a shared file list.
- StLSItemInfoRecordA structure that holds the information Launch Services reports about an item.
- StLSLaunchURLSpecmacOS 10.0+A structure that specifies URLs and parameters for launching an application.
- StLSLaunchFSRefSpecA structure that specifies file references and parameters for launching an application.
- StLSApplicationParametersA structure that specifies parameters for launching an application.
- StLSRolesMaskConstants that specify the roles an application can claim for a file type.
- StLSAcceptanceFlagsConstants that specify how strictly Launch Services matches an item.
- StLSRequestedInfoConstants that specify which item information Launch Services should return.
- StLSItemInfoFlagsConstants that describe the characteristics of an item reported by Launch Services.
- StLSHandlerOptionsConstants that specify options for an application's content or URL-scheme handler.
- StLSLaunchFlagsConstants that specify options controlling how an application is launched.
Identity Services 5
Resolve and query users, groups, and the authorities that vouch for them.
- ClCSIdentityAn object that represents a user or group identity resolved through Identity Services.
- ClCSIdentityQueryAn object that searches an authority for matching user or group identities.
- ClCSIdentityAuthorityAn object that represents an authority responsible for vouching for identities.
- StCSIdentityClientContextA structure that supplies client context for an Identity Services identity.
- StCSIdentityQueryClientContextA structure that supplies client context for an Identity Services query.
Search Kit Indexing 9
Build and query full-text indexes and summarize their contents.
- ClSKIndexAn object that represents a Search Kit index of document content for full-text search.
- ClSKIndexDocumentIteratorAn object that iterates over the documents contained in a Search Kit index.
- ClSKSearchAn object that performs an asynchronous query against a Search Kit index.
- ClSKSearchGroupAn object that groups multiple Search Kit indexes for a combined query.
- ClSKSearchResultsAn object that holds the ranked documents returned by a Search Kit query.
- ClSKSummaryAn object that produces a summary of a body of text using Search Kit.
- StSKIndexTypeConstants that specify the type of a Search Kit index.
- StSKDocumentIndexStateConstants that describe the indexing state of a document in a Search Kit index.
- StSKSearchTypeConstants that specify the type of search performed against a Search Kit index.
Apple Events 7
Describe and build Apple event records, arrays, and remote-process resolution.
- StAEDescA structure that describes an Apple event descriptor and its associated data.
- StAEKeyDescA structure that pairs a keyword with an Apple event descriptor.
- StAEArrayDataA structure that holds the data for an array within an Apple event descriptor.
- StAEBuildErrorA structure that reports an error encountered while building an Apple event.
- StAERemoteProcessResolverContextA structure that supplies client context for resolving remote processes for Apple events.
- StccntTokenRecordA structure that holds a scripting token used by an Apple event handler.
- StTScriptingSizeResourceA structure that describes the scripting size resource for an application.
Keyboard Layout Data 11
Low-level structures that describe Unicode keyboard layouts and key-state mapping.
- StUCKeyboardLayoutA structure that describes a complete Unicode keyboard layout.
- StUCKeyboardTypeHeaderA structure that describes the header for a keyboard type within a layout.
- StUCKeyLayoutFeatureInfoA structure that describes feature information for a Unicode keyboard layout.
- StUCKeyModifiersToTableNumA structure that maps modifier-key combinations to character-table indexes.
- StUCKeyToCharTableIndexA structure that indexes the character tables of a keyboard layout.
- StUCKeyStateRecordA structure that describes a key-state record within a Unicode keyboard layout.
- StUCKeyStateRecordsIndexA structure that indexes the key-state records of a keyboard layout.
- StUCKeyStateEntryTerminalA structure that describes a terminal entry in a keyboard layout's key-state table.
- StUCKeyStateEntryRangeA structure that describes a range entry in a keyboard layout's key-state table.
- StUCKeyStateTerminatorsA structure that holds the state terminators for a keyboard layout.
- StUCKeySequenceDataIndexA structure that indexes key-sequence data within a keyboard layout.
Text and Script Data 5
Structures that represent text ranges, offsets, and international writing systems.
- StTextRangeA structure that describes a contiguous range within a body of text.
- StTextRangeArrayA structure that holds an array of text ranges.
- StOffsetArrayA structure that holds an array of text offsets.
- StWritingCodeA structure that identifies a script and language for a body of text.
- StIntlTextA structure that pairs text with its international writing-system code.
File-System Events 1
Context for receiving file-system change notifications.
- StFSEventStreamContextA structure that supplies client context for a file-system event stream.
Dictionary Services 1
Access to system dictionary data.
- ClDCSDictionary@typedef DCSDictionaryRef
Type Aliases 96
- TyDescType
- TyAEKeyword
- TyAEDataStorageType
- TyAEDataStorage
- TyAEDescPtr
- TyAEDescList
- TyAERecord
- TyAEAddressDesc
- TyAppleEvent
- TyAppleEventPtr
- TyAEReturnID
- TyAETransactionID
- TyAEEventClass
- TyAEEventID
- TyAEArrayType
- TyAEArrayDataPointer
Show 80 more
- TyAESendPriorityThese constants are used by AEMach and AEInteraction APIs. They are not
- TyAESendMode
- TyAECoerceDescProcPtrThese calls are used to set up and modify the coercion dispatch table.
- TyAECoercePtrProcPtr
- TyAECoerceDescUPP
- TyAECoercePtrUPP
- TyAECoercionHandlerUPP
- TyAEDisposeExternalProcPtr
- TyAEDisposeExternalUPP
- TyAEEventHandlerProcPtrA AEEventHandler is installed to process an AppleEvent
- TyAEEventHandlerUPP
- TyAEBuildErrorCode
- TyAEStreamRef
- TyccntTokenRecPtr
- TyccntTokenRecHandle
- TyOSLAccessorProcPtr
- TyOSLCompareProcPtr
- TyOSLCountProcPtr
- TyOSLDisposeTokenProcPtr
- TyOSLGetMarkTokenProcPtr
- TyOSLGetErrDescProcPtr
- TyOSLMarkProcPtr
- TyOSLAdjustMarksProcPtr
- TyOSLAccessorUPP
- TyOSLCompareUPP
- TyOSLCountUPP
- TyOSLDisposeTokenUPP
- TyOSLGetMarkTokenUPP
- TyOSLGetErrDescUPP
- TyOSLMarkUPP
- TyOSLAdjustMarksUPP
- TyTextRangePtr
- TyTextRangeHandle
- TyTextRangeArrayPtr
- TyTextRangeArrayHandle
- TyOffsetArrayPtr
- TyOffsetArrayHandle
- TyAEEventSourceAEEventSource is defined as an SInt8 for compatability with pascal.
- TyAERemoteProcessResolverRef
- TyAERemoteProcessResolverCallback
- TyCSDiskSpaceRecoveryOptions
- TyCSDiskSpaceRecoveryCallback
- TyUCKeyOutput
- TyUCKeyCharSeq
- TyCollatorRef
- TyUCCollateOptions
- TyUCCollationValue
- TyUCTypeSelectRef
- TyUCTypeSelectCompareResult
- TyUCTSWalkDirection
- TyUCTypeSelectOptions
- TyIndexToUCStringProcPtr
- TyIndexToUCStringUPP
- TyTextBreakLocatorRef
- TyUCTextBreakType
- TyUCTextBreakOptions
- TyFSEventStreamCreateFlags
- TyFSEventStreamEventFlags
- TyFSEventStreamEventId
- TyFSEventStreamRef
- TyConstFSEventStreamRef
- TyFSEventStreamCallback
- TyIconRef
- TyIconServicesUsageFlags
- TyMDQueryCreateResultFunction@typedef MDQueryCreateResultFunction
- TyMDQueryCreateValueFunction@typedef MDQueryCreateValueFunction
- TyMDQuerySortComparatorFunction@typedef MDQuerySortComparatorFunction
- TyCSIdentityClass
- TyCSIdentityFlags
- TyCSIdentityStatusUpdatedCallback
- TyCSIdentityQueryFlags
- TyCSIdentityQueryStringComparisonMethod
- TyCSIdentityQueryEvent
- TyCSIdentityQueryReceiveEventCallback
- TySKDocument
- TySKDocumentID
- TySKSearchOptions
- TySKSearchResultsFilterCallBack
- TyLSSharedFileListResolutionFlags
- TyLSSharedFileListChangedProcPtr