Creates a tool tip for a defined area the receiver and returns a tag that identifies the tool tip rectangle.
Original signature is '- (NSToolTipTag)addToolTipRect:(NSRect)aRect owner:(id)anObject userData:(void *)userData'
Available in Mac OS X v10.0 and later.
|C#||Visual Basic||Visual C++|
- aRect (NSRect)
- A rectangle defining the region of the receiver to associate the tool tip with.
- anObject (Id)
- An object from which to obtain the tool tip string. The object should either implement view:stringForToolTip:point:userData:, or return a suitable string from its description method. (It can therefore simply be an NSString object.)
- userData (IntPtr)
- Any additional information you want to pass to view:stringForToolTip:point:userData:; it is not used if anObject does not implement this method.
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)