setAction for NSMatrix Not Working

Posted by PF1 on Stack Overflow See other posts from Stack Overflow or by PF1
Published on 2010-05-29T18:40:19Z Indexed on 2010/05/29 18:42 UTC
Read the original article Hit count: 193

Filed under:
|
|
|
|

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.

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about radiobutton