How can I have an action ran at runtime instead of linking it to a click ect..?
I basically have a radio button that, at run time is already selected and I need the corresponding NSTexTField to not be editable when the radio button is selected.
I found a way to do it with an if-statement and linking it to an IBAction but that is only executed by a click.
I need it the radio button to be detected right away so that is disables the NSTextField.
PHP:
cellTag = [buyRadioGroup selectedRow];
if (cellTag == 0) {
[dispPrice setEditable:(BOOL)flag];
[dispPrice setDrawsBackground:[(BOOL)YES];
}
I basically have a radio button that, at run time is already selected and I need the corresponding NSTexTField to not be editable when the radio button is selected.
I found a way to do it with an if-statement and linking it to an IBAction but that is only executed by a click.
Last edited by a moderator: