FROM : m
DATE : Tue Nov 02 09:46:43 2004
On Nov 2, 2004, at 12:29 AM, Peter Karlsson wrote:
> Dear list!
>
> My NSMatrix have 8 cells from left to right. I am trying to get the
> selected cells. Here is my code so far:
>
> NSArray *cells = [myMatrixOutlet cells];
> NSEnumerator *cellEnum = [cells objectEnumerator];
> NSCell *cell;
> while (cell = [cellEnum nextObject])
> {
>
> What am I supposed to do here to get the selected cells?
do this (typed in Mail, may not compile, etc):
NSArray* selectedCells = [myMatrixOutlet selectedCells];
NSEnumerator* enumerator = [selectedCells objectEnumerator];
while (NSCell* aCell = [enumerator nextObject])
{
/* code to act on each cell as it is returned */
}
_murat
DATE : Tue Nov 02 09:46:43 2004
On Nov 2, 2004, at 12:29 AM, Peter Karlsson wrote:
> Dear list!
>
> My NSMatrix have 8 cells from left to right. I am trying to get the
> selected cells. Here is my code so far:
>
> NSArray *cells = [myMatrixOutlet cells];
> NSEnumerator *cellEnum = [cells objectEnumerator];
> NSCell *cell;
> while (cell = [cellEnum nextObject])
> {
>
> What am I supposed to do here to get the selected cells?
do this (typed in Mail, may not compile, etc):
NSArray* selectedCells = [myMatrixOutlet selectedCells];
NSEnumerator* enumerator = [selectedCells objectEnumerator];
while (NSCell* aCell = [enumerator nextObject])
{
/* code to act on each cell as it is returned */
}
_murat
| Related mails | Author | Date |
|---|---|---|
| Peter Karlsson | Nov 2, 09:29 | |
| m | Nov 2, 09:46 | |
| Graham cox | Nov 2, 23:18 | |
| mmalcolm crawford | Nov 2, 23:50 | |
| mmalcolm crawford | Nov 3, 00:55 |






Cocoa mail archive

