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: Graham cox <email@hidden>
- Date: Wed, 3 Nov 2004 09:18:44 +1100
What am I supposed to do here to get the selected cells?
int attr = [cell cellAttribute:NSCellHighlighted];
That's assuming you want to know if the cell is highlighted. There are
a number of other cell attributes that might be of interest.
have you got the documentation installed? I haven't done this cell
stuff myself but managed to look this up within Xcode in a couple of
minutes. Check that when you open "Show Documentation Window" in th
Help menu you get the docs showing up. Also, use API search mode where
possible - I just typed in NSCell and then browsed through the methods.
The Full text Search is quite a bit slower and often doesn't return
very relevant results, I find.
On 02/11/2004, at 7:29 PM, 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?
}
Best regards Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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