Re: TableView Mouse Tracking problem
Re: TableView Mouse Tracking problem
- Subject: Re: TableView Mouse Tracking problem
- From: Corbin Dunn <email@hidden>
- Date: Tue, 12 Jul 2005 12:51:49 -0700
Matt,
- (void)tableView:(NSTableView *)tableView willDisplayCell:(id)cell
forTableColumn:(NSTableColumn *)tableColumn row:(int)row
{
if(mouseHoveredOnButton) {
[cell setMouseOver:YES];
mouseHoveredOnButton = NO;
}
}
The same cell is shared for one column. You may want to have it read
something like:
if(mouseHoveredOnButton) {
[cell setMouseOver:YES];
mouseHoveredOnButton = NO;
}
else { [cell setMouseHover:NO; }.
In addition, you may want to store what row/col you are hovering
over, and perform that check instead:
BOOL hovered = (row == hoverRow && col == hoverCol);
[cell setHovered:hovered];
--=corbin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden