Contents

lockFocusIfCanDraw(in:)

Locks the focus to the view atomically if drawing can occur in the specified graphics context.

Declaration

func lockFocusIfCanDraw(in context: NSGraphicsContext) -> Bool

Parameters

  • context:

    The graphics context in which drawing might occur. See the discussion for the implications of the type of context.

Return Value

true if successful; otherwise, returns false.

See Also

Methods