TechnologiesFoundation, System & Concurrency

CoreServices

iOSmacOStvOSwatchOSvisionOS

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.

  • Cl
    MDItem
    @typedef MDItemRef
  • Cl
    MDLabel
    @typedef MDLabelRef
  • Cl
    MDQuery
    @typedef MDQueryRef
  • St
    MDLabelDomain
    @typedef MDLabelDomain
  • St
    MDQueryOptionFlags
    Constants that specify options controlling how a Spotlight query runs.
  • St
    MDQueryBatchingParams
    @typedef MDQueryBatchingParams
  • St
    MDQuerySortOptionFlags
    @enum MDQuerySortOptionFlags
  • St
    MDImporterInterfaceStruct
    A structure that defines the interface a Spotlight metadata importer plug-in implements.
  • St
    MDExporterInterfaceStruct
    A structure that defines the interface a Spotlight metadata exporter plug-in implements.
  • St
    MDImporterURLInterfaceStruct
    A structure that defines a URL-based interface for a Spotlight metadata importer.
  • St
    MDImporterBundleWrapperURLInterfaceStruct
    A 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.

  • Cl
    LSSharedFileList
    An object that represents a persistent, ordered list of shared file-system items.
  • Cl
    LSSharedFileListItem
    An object that represents a single entry in a shared file list.
  • St
    LSItemInfoRecord
    A structure that holds the information Launch Services reports about an item.
  • St
    LSLaunchURLSpecmacOS 10.0+
    A structure that specifies URLs and parameters for launching an application.
  • St
    LSLaunchFSRefSpec
    A structure that specifies file references and parameters for launching an application.
  • St
    LSApplicationParameters
    A structure that specifies parameters for launching an application.
  • St
    LSRolesMask
    Constants that specify the roles an application can claim for a file type.
  • St
    LSAcceptanceFlags
    Constants that specify how strictly Launch Services matches an item.
  • St
    LSRequestedInfo
    Constants that specify which item information Launch Services should return.
  • St
    LSItemInfoFlags
    Constants that describe the characteristics of an item reported by Launch Services.
  • St
    LSHandlerOptions
    Constants that specify options for an application's content or URL-scheme handler.
  • St
    LSLaunchFlags
    Constants that specify options controlling how an application is launched.

Identity Services 5

Resolve and query users, groups, and the authorities that vouch for them.

  • Cl
    CSIdentity
    An object that represents a user or group identity resolved through Identity Services.
  • Cl
    CSIdentityQuery
    An object that searches an authority for matching user or group identities.
  • Cl
    CSIdentityAuthority
    An object that represents an authority responsible for vouching for identities.
  • St
    CSIdentityClientContext
    A structure that supplies client context for an Identity Services identity.
  • St
    CSIdentityQueryClientContext
    A structure that supplies client context for an Identity Services query.

Search Kit Indexing 9

Build and query full-text indexes and summarize their contents.

  • Cl
    SKIndex
    An object that represents a Search Kit index of document content for full-text search.
  • Cl
    SKIndexDocumentIterator
    An object that iterates over the documents contained in a Search Kit index.
  • Cl
    SKSearch
    An object that performs an asynchronous query against a Search Kit index.
  • Cl
    SKSearchGroup
    An object that groups multiple Search Kit indexes for a combined query.
  • Cl
    SKSearchResults
    An object that holds the ranked documents returned by a Search Kit query.
  • Cl
    SKSummary
    An object that produces a summary of a body of text using Search Kit.
  • St
    SKIndexType
    Constants that specify the type of a Search Kit index.
  • St
    SKDocumentIndexState
    Constants that describe the indexing state of a document in a Search Kit index.
  • St
    SKSearchType
    Constants 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.

  • St
    AEDesc
    A structure that describes an Apple event descriptor and its associated data.
  • St
    AEKeyDesc
    A structure that pairs a keyword with an Apple event descriptor.
  • St
    AEArrayData
    A structure that holds the data for an array within an Apple event descriptor.
  • St
    AEBuildError
    A structure that reports an error encountered while building an Apple event.
  • St
    AERemoteProcessResolverContext
    A structure that supplies client context for resolving remote processes for Apple events.
  • St
    ccntTokenRecord
    A structure that holds a scripting token used by an Apple event handler.
  • St
    TScriptingSizeResource
    A 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.

  • St
    UCKeyboardLayout
    A structure that describes a complete Unicode keyboard layout.
  • St
    UCKeyboardTypeHeader
    A structure that describes the header for a keyboard type within a layout.
  • St
    UCKeyLayoutFeatureInfo
    A structure that describes feature information for a Unicode keyboard layout.
  • St
    UCKeyModifiersToTableNum
    A structure that maps modifier-key combinations to character-table indexes.
  • St
    UCKeyToCharTableIndex
    A structure that indexes the character tables of a keyboard layout.
  • St
    UCKeyStateRecord
    A structure that describes a key-state record within a Unicode keyboard layout.
  • St
    UCKeyStateRecordsIndex
    A structure that indexes the key-state records of a keyboard layout.
  • St
    UCKeyStateEntryTerminal
    A structure that describes a terminal entry in a keyboard layout's key-state table.
  • St
    UCKeyStateEntryRange
    A structure that describes a range entry in a keyboard layout's key-state table.
  • St
    UCKeyStateTerminators
    A structure that holds the state terminators for a keyboard layout.
  • St
    UCKeySequenceDataIndex
    A 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.

  • St
    TextRange
    A structure that describes a contiguous range within a body of text.
  • St
    TextRangeArray
    A structure that holds an array of text ranges.
  • St
    OffsetArray
    A structure that holds an array of text offsets.
  • St
    WritingCode
    A structure that identifies a script and language for a body of text.
  • St
    IntlText
    A structure that pairs text with its international writing-system code.

File-System Events 1

Context for receiving file-system change notifications.

  • St
    FSEventStreamContext
    A structure that supplies client context for a file-system event stream.

Dictionary Services 1

Access to system dictionary data.

  • Cl
    DCSDictionary
    @typedef DCSDictionaryRef

Type Aliases 96

  • Ty
    DescType
  • Ty
    AEKeyword
  • Ty
    AEDataStorageType
  • Ty
    AEDataStorage
  • Ty
    AEDescPtr
  • Ty
    AEDescList
  • Ty
    AERecord
  • Ty
    AEAddressDesc
  • Ty
    AppleEvent
  • Ty
    AppleEventPtr
  • Ty
    AEReturnID
  • Ty
    AETransactionID
  • Ty
    AEEventClass
  • Ty
    AEEventID
  • Ty
    AEArrayType
  • Ty
    AEArrayDataPointer
Show 80 more
  • Ty
    AESendPriority
    These constants are used by AEMach and AEInteraction APIs. They are not
  • Ty
    AESendMode
  • Ty
    AECoerceDescProcPtr
    These calls are used to set up and modify the coercion dispatch table.
  • Ty
    AECoercePtrProcPtr
  • Ty
    AECoerceDescUPP
  • Ty
    AECoercePtrUPP
  • Ty
    AECoercionHandlerUPP
  • Ty
    AEDisposeExternalProcPtr
  • Ty
    AEDisposeExternalUPP
  • Ty
    AEEventHandlerProcPtr
    A AEEventHandler is installed to process an AppleEvent
  • Ty
    AEEventHandlerUPP
  • Ty
    AEBuildErrorCode
  • Ty
    AEStreamRef
  • Ty
    ccntTokenRecPtr
  • Ty
    ccntTokenRecHandle
  • Ty
    OSLAccessorProcPtr
  • Ty
    OSLCompareProcPtr
  • Ty
    OSLCountProcPtr
  • Ty
    OSLDisposeTokenProcPtr
  • Ty
    OSLGetMarkTokenProcPtr
  • Ty
    OSLGetErrDescProcPtr
  • Ty
    OSLMarkProcPtr
  • Ty
    OSLAdjustMarksProcPtr
  • Ty
    OSLAccessorUPP
  • Ty
    OSLCompareUPP
  • Ty
    OSLCountUPP
  • Ty
    OSLDisposeTokenUPP
  • Ty
    OSLGetMarkTokenUPP
  • Ty
    OSLGetErrDescUPP
  • Ty
    OSLMarkUPP
  • Ty
    OSLAdjustMarksUPP
  • Ty
    TextRangePtr
  • Ty
    TextRangeHandle
  • Ty
    TextRangeArrayPtr
  • Ty
    TextRangeArrayHandle
  • Ty
    OffsetArrayPtr
  • Ty
    OffsetArrayHandle
  • Ty
    AEEventSource
    AEEventSource is defined as an SInt8 for compatability with pascal.
  • Ty
    AERemoteProcessResolverRef
  • Ty
    AERemoteProcessResolverCallback
  • Ty
    CSDiskSpaceRecoveryOptions
  • Ty
    CSDiskSpaceRecoveryCallback
  • Ty
    UCKeyOutput
  • Ty
    UCKeyCharSeq
  • Ty
    CollatorRef
  • Ty
    UCCollateOptions
  • Ty
    UCCollationValue
  • Ty
    UCTypeSelectRef
  • Ty
    UCTypeSelectCompareResult
  • Ty
    UCTSWalkDirection
  • Ty
    UCTypeSelectOptions
  • Ty
    IndexToUCStringProcPtr
  • Ty
    IndexToUCStringUPP
  • Ty
    TextBreakLocatorRef
  • Ty
    UCTextBreakType
  • Ty
    UCTextBreakOptions
  • Ty
    FSEventStreamCreateFlags
  • Ty
    FSEventStreamEventFlags
  • Ty
    FSEventStreamEventId
  • Ty
    FSEventStreamRef
  • Ty
    ConstFSEventStreamRef
  • Ty
    FSEventStreamCallback
  • Ty
    IconRef
  • Ty
    IconServicesUsageFlags
  • Ty
    MDQueryCreateResultFunction
    @typedef MDQueryCreateResultFunction
  • Ty
    MDQueryCreateValueFunction
    @typedef MDQueryCreateValueFunction
  • Ty
    MDQuerySortComparatorFunction
    @typedef MDQuerySortComparatorFunction
  • Ty
    CSIdentityClass
  • Ty
    CSIdentityFlags
  • Ty
    CSIdentityStatusUpdatedCallback
  • Ty
    CSIdentityQueryFlags
  • Ty
    CSIdentityQueryStringComparisonMethod
  • Ty
    CSIdentityQueryEvent
  • Ty
    CSIdentityQueryReceiveEventCallback
  • Ty
    SKDocument
  • Ty
    SKDocumentID
  • Ty
    SKSearchOptions
  • Ty
    SKSearchResultsFilterCallBack
  • Ty
    LSSharedFileListResolutionFlags
  • Ty
    LSSharedFileListChangedProcPtr
← Foundation, System & Concurrency