I am attempting to check the state of checkboxes and then unselect them if they come back as selected, I have an array with all the the checkboxes listed in it. How ever I have an warning with the code: "Warning: invalid receiver type 'SEL'". I would think the next step would be to to set the checkbox to to unchecked. It would be something like correct?:
I have tried and get the same warning:
Also how do I create a dmg file to contain all this and how do I get the NSTextView to be uneditable however still able to have info written to it through the code only?
Thank you again in advance
Code:
NSString *stTmp;
SEL aMethod;
for(i=0; i<[arrSelections count]; i++) {
stTmp = [arrSelections objectAtIndex: i];
aMethod = NSSelectorFromString(stTmp);
if([aMethod state]==NSOnState) {
[aMethod state]==NSOffState;
}
}
I have tried and get the same warning:
Code:
if([NSSelectorFromString(stTmp) state]==NSOnState)
Also how do I create a dmg file to contain all this and how do I get the NSTextView to be uneditable however still able to have info written to it through the code only?
Thank you again in advance