开发者

What to subclass for clickedRow (NSTableView)

开发者 https://www.devze.com 2022-12-24 14:52 出处:网络
Which method sho开发者_如何学Culd I subclass to change the drawing when a row is right-mouse clicked? (I want to change it in selecting the row).It sounds to me like you want the highlightSelectionInC

Which method sho开发者_如何学Culd I subclass to change the drawing when a row is right-mouse clicked? (I want to change it in selecting the row).


It sounds to me like you want the highlightSelectionInClipRect: method.

If you're looking to make a source list (like in iTunes, Mail, and the Finder), you should use the setSelectionHighlightStyle: method (or set that property in IB) instead.


Implement the delegate method tableView:willDisplayCell:forTableColumn:row:

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号