NSToolTipOwner Protocol Reference

(informal protocol)

Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in OS X v10.0 and later.
Companion guide
Declared in
NSView.h

Overview

The NSToolTipOwner informal protocol declares a method that allows an object to dynamically provide the text to a tool tip. If the tool tip object does not implement this method, the NSObject protocol description method is invoked instead.

Tasks

Obtaining Tool Tip Strings

Instance Methods

view:stringForToolTip:point:userData:

Returns the tool tip string to be displayed due to the cursor pausing at location point within the tool tip rectangle identified by tag in the view view.

- (NSString *)view:(NSView *)view stringForToolTip:(NSToolTipTag)tag point:(NSPoint)point userData:(void *)userData
Discussion

userData is additional information provided by the creator of the tool tip rectangle.

Availability
  • Available in OS X v10.0 and later.
Declared In
NSView.h