• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSMatrix -objectValue always gives 1. What good is that?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSMatrix -objectValue always gives 1. What good is that?
      • From: "John C. Randolph" <email@hidden>
References: 
 >Re: NSMatrix -objectValue always gives 1. What good is that? (From: Lon Giese <email@hidden>)

  • Prev by Date: Re: question: NSThread & NSLock
  • Next by Date: NSPersistentStoreCoordinator not supported in 10.3.9?
  • Previous by thread: Re: NSMatrix -objectValue always gives 1. What good is that?
  • Next by thread: Re: NSMatrix -objectValue always gives 1. What good is that?
  • Index(es):
    • Date
    • Thread