how to set setEnabled: for NSButton in an NSTableView
Posted
by
user460366
on Stack Overflow
See other posts from Stack Overflow
or by user460366
Published on 2010-12-26T11:47:33Z
Indexed on
2010/12/26
11:54 UTC
Read the original article
Hit count: 268
nstableview
|nsbutton
Hi All I have an NSTableView which has three columns. The first one is a checkbox and the third one is a button. The button 'is enabled' state depends on whether or not the checkbox is checked.
I am setting the table content in the awakeFromNib
method and I am implementing the checkbox state in the - (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
method. I need to find a way setEnabled:
for the NSButton
Thanks
© Stack Overflow or respective owner