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?

thanx for any suggestions,
ken

ps. this is on 10.5.4 with xcode 3.1 linked against the 10.5 sdk.
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to