Skip to content

Instantly share code, notes, and snippets.

@richardbuckle
Created January 31, 2012 20:46
Show Gist options
  • Save richardbuckle/1712801 to your computer and use it in GitHub Desktop.
Save richardbuckle/1712801 to your computer and use it in GitHub Desktop.
NSTableView delegate methods to prevent tooltips
- (BOOL)tableView:(NSTableView*)tableView shouldShowCellExpansionForTableColumn:(NSTableColumn*)tableColumn row:(NSInteger)row
{
return NO; // no tool tips
}
- (NSString*)tableView:(NSTableView*)aTableView toolTipForCell:(NSCell*)aCell rect:(NSRectPointer)rect tableColumn:(NSTableColumn*)aTableColumn row:(NSInteger)row mouseLocation:(NSPoint)mouseLocation
{
return nil; // no tool tips
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment