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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to