Re: NSMatrix -objectValue always gives 1. What good is that?
Re: NSMatrix -objectValue always gives 1. What good is that?
- Subject: Re: NSMatrix -objectValue always gives 1. What good is that?
- From: Jerry Krinock <email@hidden>
- Date: Mon, 29 May 2006 19:05:39 -0700
- Thread-topic: NSMatrix -objectValue always gives 1. What good is that?
on 06/05/29 17:19, Lon Giese at email@hidden wrote:
> What other kind of value would you want from a radio button? it either
> on or off.
> the matrix doesn't hold any values, just cells, so it gives you the
> value of the selected cell.
Well, like I said, I believe that "the selected tag" would have been a more
logical implementation than the "value of the selected cell". Anyhow, I
implemented the subclass as suggested by Michael Ash and it works, so life
goes on....
@implementation MyMatrixButtons : NSMatrix
- (id)objectValue {
return [NSNumber numberWithInt:[self selectedTag]] ;
}
@end
_______________________________________________
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