Carbon Events for Services

This chapter outlines the Carbon event classes, kinds, and parameters your application needs to install Carbon event handlers for services events. For more information on Carbon events, see the documentation for the Carbon Event Manager on the Carbon Developer Documentation website.

Event Classes and Kinds

There are four event kinds associated with the Carbon event class kEventClassService.

Table A-1  Event classes and kinds used by application services

Event Class

Event Kind

Means

kEventClassService

kEventServiceCopy

Copy event

kEventServicePaste

Paste event

kEventServiceGetTypes

Get data types handled by the calling application

kEventServicePerform

An application is requesting a service

Event Parameters for Services Events

The Carbon event parameters that are available for a services event vary depending on the kind of the services event.

Table A-2  Carbon event parameters for service events

Event Kind

Event Parameter

Type

kEventServiceGetTypes

kEventParamServiceCopyTypes

typeCFMutableArrayRef

kEventParamServicePasteTypes

typeCFMutableArrayRef

kEventServiceCopy

kEventParamScrapRef

typeScrapRef

kEventServicePaste

kEventParamScrapRef

typeScrapRef

kEventServicePerform

kEventParamScrapRef

typeScrapRef

kEventParamServiceMessageName

typeCFStringRef

kEventParamServiceUserData

typeCFStringRef