• 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: NSTableView willDisplayCell: called on hover
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView willDisplayCell: called on hover


  • Subject: Re: NSTableView willDisplayCell: called on hover
  • From: Joshua Garnham <email@hidden>
  • Date: Tue, 19 Apr 2011 16:56:32 +0100 (BST)

Normally my code doesn't care when or how often willDisplayCell: is called and
is in fact called more often than in a normal table view as my code highlights
the cell that the mouse is over.

The odd thing is on this occasion the background which I draw for the
highlighted cell actually draws over everything else rather than going behind
it.

Obviously as this happens normally due to the tooltip, I will have to
investigate as to why the problem occurs and possibly consider where I do the
drawing.

Thanks for your help,
Josh


________________________________
From: Kyle Sluder <email@hidden>
To: Joshua Garnham <email@hidden>
Cc: "email@hidden" <email@hidden>
Sent: Tue, 19 April, 2011 16:02:17
Subject: Re: NSTableView willDisplayCell: called on hover

On Apr 19, 2011, at 7:35 AM, Joshua Garnham <email@hidden> wrote:

> So my question really is, why does willDisplayCell: get called after a 3 sec
> hover, is this a bug? and is there anyway around it?

It probably gets called to draw the tooltip expansion cell. If there is a bug
here, it's that willDisplayCell: doesn't get called after the window is
reopened.

You need to fix your code so that it doesn't care when or how often
willDisplayCell: is called. You should not be doing much if any meaningful work
in this method.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTableView willDisplayCell: called on hover
      • From: Corbin Dunn <email@hidden>
References: 
 >NSTableView willDisplayCell: called on hover (From: Joshua Garnham <email@hidden>)
 >Re: NSTableView willDisplayCell: called on hover (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: ArrayController vs Pop-up button vs Transformer -- three way tag team death match!
  • Next by Date: Re: CALayer: Animation using actions property
  • Previous by thread: Re: NSTableView willDisplayCell: called on hover
  • Next by thread: Re: NSTableView willDisplayCell: called on hover
  • Index(es):
    • Date
    • Thread