setAction for NSMatrix Not Working
- by PF1
Hi Everyone:
I am attempting to call a function when any cell in a NSMatrix instance is selected. I am using the following code in order to accomplish this:
[[cellArray objectAtIndex:0] setAction:@selector(testing:)];
[[cellArray objectAtIndex:1] setAction:@selector(testing:)];
However, when I toggle the selection of the two cells, the function isn't run. Is my method of setting the action of each cell incorrect, or is the problem located somewhere else?
Thanks for any help.