Function

CFRunLoopContainsObserver

Returns a Boolean value that indicates whether a run loop mode contains a particular CFRunLoopObserver object.

Declaration

Boolean CFRunLoopContainsObserver(CFRunLoopRef rl, CFRunLoopObserverRef observer, CFRunLoopMode mode);

Parameters

rl

The run loop to examine.

observer

The run loop observer for which to search.

mode

The run loop mode in which to search for observer. Use the constant kCFRunLoopCommonModes to search for observer in the set of objects monitored by all the common modes.

Return Value

true if observer is in mode mode of the run loop rl, otherwise false.

Discussion

If observer was added to kCFRunLoopCommonModes, this function returns true if mode is either kCFRunLoopCommonModes or any of the modes that has been added to the set of common modes.

See Also

Managing Observers

CFRunLoopAddObserver

Adds a CFRunLoopObserver object to a run loop mode.

CFRunLoopRemoveObserver

Removes a CFRunLoopObserver object from a run loop mode.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software