Handles a mouse-down event on the image at the specified character position.
- macOS 10.0+
The mouse-down event.
The region of an
NSTextin which to track further mouse events.
The view that received the event. Typically, this view is an
NSTextobject and is focused.
The position in the text at which the attachment appears.
A Boolean value that indicates whether to track the mouse until a mouse-up event occurs. If this parameter is
false, stop tracking when a mouse-dragged event occurs outside of
true if the cell successfully finished tracking the mouse, or
false if tracking was unsuccessful.
NSText implementation of this method calls upon
a’s delegate to handle the event. If
the is a mouse-up event for a double click, the text attachment cell calls the
text method of its delegate and returns
true. Otherwise, depending on whether the user clicks or drags the cell, it sends the delegate a
text: or a
text message and returns
NSText implementation returns
false only if
false and the mouse is dragged outside of
cell. The delegate methods are invoked only if the delegate responds.