osx - XCode: access Segmented Control on TableView -
I have a TableView with 2 columns. Seganded control buttons in the second column are two segments. What I want to do is modify the "enabled" property of the button for each row before the table is first displayed. I searched and failed to find the right solution How can I get access to the Segmented Control for each line?
Use representative method (NSTableColumn *) aTableColumn Row: (NSInteger) rowIndex {if ((cell KindOfClass: [NSSegmentedCell class] <;> - (zero) Table view: (NSTableView *) aTableView willDisplayCell:]]] {If (1) // Add your position {{(NSSigaded cell * ) Cell set enabled: no]; }}}
Comments
Post a Comment