O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSToolTipOwner — Mac OS X 10.0

Synopsis

This informal protocol declares a single method, view:stringForToolTip:point:userData:, which a class may implement to provide a tool-tip string to be displayed. For more information on tool tips, see the NSView and the NSView method addToolTip-Rect:owner:userData:.

@interface NSObject (NSToolTipOwner)
                                  // Instance Methods
   - (NSString *)view:(NSView *)view 
                                 stringForToolTip:(NSToolTipTag)tag 
                                 point:(NSPoint)point 
                                 userData:(void *)data;
@end

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required