Re: identify a specific NSImagecell
Re: identify a specific NSImagecell
- Subject: Re: identify a specific NSImagecell
- From: Andy Lee <email@hidden>
- Date: Wed, 19 Apr 2006 11:15:23 -0400
On Apr 19, 2006, at 9:03 AM, Francesca wrote:
I'm working with a NsMatrix of NSImageCell.
How can identify a specific cell if I can't set the tag???
I have a method on doubleclick, and I need to set an id, or
something else to identify the selected cell.
Odd -- although -setTag: is declared in NSCell, it looks like only
NSActionCell has a working implementation of it. This means it makes
no sense for IB to provide a field for setting the tag of an
NSImageCell. Likewise, the "Tag" field and the "Tags = Positions"
button don't make sense in an NSMatrix inspector when the cells are
NSImageCells. I'd report this as a bug.
As a workaround, you could set the matrix mode to "Radio", and then
in your action method look at [sender selectedRow] and [sender
selectedColumn].
--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