开发者

NSSegmentedCell in NSTableView in Interface Builder

开发者 https://www.devze.com 2023-03-21 14:40 出处:网络
I am trying to implement an NSSegmentedCell in an NSTableView (I\'m usin开发者_如何学编程g Ruby, though it\'s not relevant). I am confused as to how to wire the cell - if I add a table to my applicati

I am trying to implement an NSSegmentedCell in an NSTableView (I'm usin开发者_如何学编程g Ruby, though it's not relevant). I am confused as to how to wire the cell - if I add a table to my application, and then drag an NSSegmentedCell into one of the columns, choose "select any," make sure the cell is enabled and then run a simple application that displays a row, the NSSegmentedCell acts like a momentary push in button rather than a segmented control. What is the necessary code to properly wire a NSSegmentedCell so the user can choose any of the segments, and they remain depressed?

0

精彩评论

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

关注公众号