Re: TableView Mouse Tracking problem
Re: TableView Mouse Tracking problem
- Subject: Re: TableView Mouse Tracking problem
- From: Matt Ball <email@hidden>
- Date: Tue, 12 Jul 2005 21:34:35 -0400
---------- Forwarded message ----------
From: Matt Ball <email@hidden>
Date: Jul 12, 2005 9:34 PM
Subject: Re: TableView Mouse Tracking problem
To: Corbin Dunn <email@hidden>
Thanks for the input, but that code didn't have any effect :/
- Matt Ball
On 7/12/05, Corbin Dunn <email@hidden> wrote:
> 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