Contents

CGDisplayCurrentMode(_:)

Returns information about the current display mode.

Declaration

func CGDisplayCurrentMode(_ display: CGDirectDisplayID) -> CFDictionary?

Parameters

  • display:

    The identifier of the display to be accessed.

Return Value

A display mode dictionary, or NULL if the display is invalid. The dictionary is owned by the system and you should not release it. The dictionary contains information about the current display mode. For a list of the properties in a display mode dictionary, see Display Mode Standard Properties and Display Mode Optional Properties. For general information about using dictionaries, see CFDictionary.

Discussion

This deprecated function returns a display mode dictionary. Starting in OS X v10.6, display mode dictionaries have been replaced by the CGDisplayMode opaque type. Whereas display mode dictionaries returned by CGDisplayCurrentModes are owned by the system and are not to be released, display mode opaque type references returned by CGDisplayCopyDisplayMode are owned by the caller and you must release them.

See Also

Functions