• 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 NSTrackingArea and mouse clicks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView NSTrackingArea and mouse clicks


  • Subject: Re: NSTableView NSTrackingArea and mouse clicks
  • From: Corbin Dunn <email@hidden>
  • Date: Fri, 25 Jul 2008 07:44:32 -0700


On Jul 24, 2008, at 6:16 PM, email@hidden wrote:

i have an NSTableView that uses a data source (no bindings, but i don't think this is relevant). one column uses a custom cell that is actually a subclass of NSTokenFieldCell (but i don't think this is relevant either). i draw this cell differently depending on whether or not the row it is in is the table's selected row. (and i only allow one row at a time to be selected.)

if i don't use any NSTrackingAreas, everything works as i want/expect.

however, if i set up some tracking rects for my custom cell, then things don't work properly. i am using the techniques from the sample PhotoSearch app. by "don't work properly," what i mean is that if i select a row by clicking in one of the NSTrackingAreas, the cell draws as if the row isn't selected. if i don't click inside one of the tracking rects, but click elsewhere in the row, then my custom cell draws properly, ie in its highlighted state.

since this is my first use of NSTrackingArea, i wouldn't be surprised if its something i'm doing. are there known interactions between NSTrackingArea a clicks in the tracking area? can anyone suggest how i can proceed?

No; none --- it is probably something wrong with your cell drawing code. Can you post it here? I'll take a look at it.


corbin (I wrote that demo -- note, I think there are a few bugs in the tracking area code of the demo that I need to fix up, but this isn't one of them)
_______________________________________________


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:
    • bug in PhotoSearch
      • From: "email@hidden" <email@hidden>
    • Re: NSTableView NSTrackingArea and mouse clicks
      • From: "email@hidden" <email@hidden>
References: 
 >NSTableView NSTrackingArea and mouse clicks (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Folder has limited permissions.
  • Next by Date: Folder sharing attributes
  • Previous by thread: NSTableView NSTrackingArea and mouse clicks
  • Next by thread: Re: NSTableView NSTrackingArea and mouse clicks
  • Index(es):
    • Date
    • Thread