Iterates through the cells in the receiver, sending the specified selector to an object for each cell.
- macOS 10.0+
The selector to send to the object for each cell. This must represent a method that takes a single argument: the id of the current cell in the iteration.
a’s return value must be a BOOL. If
NOfor any cell,
NSMatrixterminates immediately, without sending the message for the remaining cells. If it returns
NSMatrixproceeds to the next cell.
The object that is sent the selector for each cell in the matrix.
YESif the method should iterate through all cells in the matrix;
NOif it should iterate through just the selected cells in the matrix.
Iteration begins with the cell in the upper-left corner of the receiver, proceeding through the appropriate entries in the first row, then on to the next.
This method is not invoked to send action messages to target objects in response to mouse-down events in the receiver. Instead, you can invoke it if you want to have multiple cells in an
NSMatrix interact with an object. For example, you could use it to verify the titles in a list of items or to enable a series of radio buttons based on their purpose in relation to