• 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
startTrackingAt not working as expected for NSTableView cells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

startTrackingAt not working as expected for NSTableView cells


  • Subject: startTrackingAt not working as expected for NSTableView cells
  • From: Dave Camp <email@hidden>
  • Date: Thu, 18 Sep 2003 14:31:38 -0700

I've got an NSTableView with a single column and a custom subclass of NSCell installed. The cell class contains 4 sub-cells, and it draws fine.

I want to track mouse clicks on one of the sub-cells (an NSCell displaying an image), such that on mouse down I display a pressed image and revert to the normal image on mouse up. I'm using a standard NSCell for this as there does not appear to be a way to use NSButtonCells without fancy Aqua borders and such.

So, here is the problem. All of the documentation I've read indicates that my cell class should get a startTrackingAt:inView: call on mouse down. I only seem to get the call on the subsequent mouse up. I've also implemented trackMouse:inRect:ofView:untilMouseUp:, continueTracking:inView:, and stopTracking:inView: and all of those are only called on mouse up as well.

What am I doing wrong? It looks like the table view or table column is not letting the cells track mouse clicks.

Thanks,
Dave
---
It's not denial. I'm just very particular about the reality I choose to accept. -Calvin
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: startTrackingAt not working as expected for NSTableView cells [never mind]
      • From: Dave Camp <email@hidden>
  • Prev by Date: Writing a protected method in Obj-C
  • Next by Date: Newbie - best time to set filename
  • Previous by thread: Re: Writing a protected method in Obj-C
  • Next by thread: Re: startTrackingAt not working as expected for NSTableView cells [never mind]
  • Index(es):
    • Date
    • Thread