Locks the focus to the view atomically if drawing can occur in the specified graphics context.
- macOS 10.4–10.13Deprecated
The graphics context in which drawing might occur. See the discussion for the implications of the type of context.
YES if successful; otherwise, returns
Locks the focus on the view, so subsequent commands take effect in the view’s window and coordinate system.
Locks the focus to the view atomically if the
canDraw method returns
YES and returns the value of
Returns the currently focused
NSView object, or
nil if there is none.