Re: How do I get the selected cells?
Re: How do I get the selected cells?
- Subject: Re: How do I get the selected cells?
- From: m <email@hidden>
- Date: Tue, 2 Nov 2004 00:46:43 -0800
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden