Re: identify a specific NSImagecell
Re: identify a specific NSImagecell
- Subject: Re: identify a specific NSImagecell
- From: Francesca <email@hidden>
- Date: Wed, 19 Apr 2006 17:40:05 +0200
It sounds like you wanted to use [sender selectedTag] and use that
as the array index. But you can't, because you can't set tags of
image cells. So instead I am suggesting that you look at [sender
selectedRow] and [sender selectedColumn]. Those two numbers will
tell you the position of the cell that was double-clicked. You can
use them to compute the index you want for your NSMutableArray. If
your matrix only has one row, you can simply use [sender
selectedColumn] as the array index.
Note that first you must set the "Mode" of the matrix to "Radio" in
Interface Builder.
--Andy
_______________________________________________
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
Ok thank you!
I'm trying to calculate the "number" of cell from column and row :-D
I hope I'll be able!
Thanks!
_______________________________________________
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