NSToolTipOwner Protocol Reference
(informal protocol)
| Framework | /System/Library/Frameworks/AppKit.framework |
| 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.
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.
See Also
-
– addToolTipRect:owner:userData:(NSView)
Declared In
NSView.h© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-11-13)