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

Re: startTrackingAt not working as expected for NSTableView cells [never mind]


  • Subject: Re: startTrackingAt not working as expected for NSTableView cells [never mind]
  • From: Dave Camp <email@hidden>
  • Date: Thu, 18 Sep 2003 17:55:50 -0700

Figures. A few minutes after posting the question it mysteriously starts working... I hate that.

Sorry for the waste of bandwidth.

Dave

On Thursday, September 18, 2003, at 02:31 PM, Dave Camp wrote:

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.


---
It is dark; you are likely to be eaten by a grue. -Zork
_______________________________________________
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.

References: 
 >startTrackingAt not working as expected for NSTableView cells (From: Dave Camp <email@hidden>)

  • Prev by Date: Re: Writing a protected method in Obj-C
  • Next by Date: Latest (August) gcc update broke precompiled headers again?
  • Previous by thread: startTrackingAt not working as expected for NSTableView cells
  • Next by thread: Newbie - best time to set filename
  • Index(es):
    • Date
    • Thread