• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TableView Mouse Tracking problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >TableView Mouse Tracking problem (From: Matt Ball <email@hidden>)
 >Re: TableView Mouse Tracking problem (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Wait ... was: App blocks in kernel
  • Next by Date: Re: TableView Mouse Tracking problem
  • Previous by thread: Re: TableView Mouse Tracking problem
  • Next by thread: Re: TableView Mouse Tracking problem
  • Index(es):
    • Date
    • Thread