Re: disabling tooltips table view
Re: disabling tooltips table view
- Subject: Re: disabling tooltips table view
- From: Graham Cox <email@hidden>
- Date: Tue, 18 Aug 2009 21:52:39 +1000
On 18/08/2009, at 9:24 PM, Rick C. wrote:
hello,
i'm probably overlooking something simple but if someone could point
me in the right direction on how to disable tooltips in my table
view i would appreciate it. i have tried all the ways i could find
through documentation/google and they still seem to appear although
randomly. thank you very much,
From the docs for NStableView's delegate methods. Note the last
sentence.
tableView:toolTipForCell:rect:tableColumn:row:mouseLocation:
Returns a string that is displayed as a tooltip for aCell in
aTableColumn of aTableView.
- (NSString *)tableView:(NSTableView *)aTableView toolTipForCell:
(NSCell *)aCell rect:(NSRectPointer)recttableColumn:(NSTableColumn
*)aTableColumn row:(NSInteger)row mouseLocation:(NSPoint)mouseLocation
Discussion
The row is the row of the cell and aTableColumn is the NSTableColumn
that contains the cell. The rect represents the proposed active area
of the tooltip. By default, rect is computed as [cell
drawingRectForBounds:cellFrame]. You can modify rect to provide an
alternative active area. Return nil or the empty string if no tooltip
is desired.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden