• 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: Greg Herlihy <email@hidden>
  • Date: Mon, 29 May 2006 13:40:20 -0700
  • Thread-topic: NSMatrix -objectValue always gives 1. What good is that?

I don't think objectValue will indicate which cell in a matrix is selected.
But selectedIndex, selectedObject, selectedTag and selectedValue certainly
sound like they would.

Greg


On 5/29/06 1:04 PM, "Jerry Krinock" <email@hidden> wrote:

> I just discovered the wonders of using -objectValue to read an NSControl.
> Very cool. No matter what kind of control it is, I get an object which I can
> just slam into my database using one generic method.
>
> Except for NSMatrix.  According to NSControl documentation, "If the control
> contains many cells (for example, NSMatrix), then the value of the currently
> selected cell is returned."
>
> Well in, say, a matrix of radio buttons, the "selected cell" always has a
> value ot NSNumber 1, because, duh, it is selected.  So I always get 1, which
> is useless.
>
> Is there any way to make -objectValue give me what I need from an NSMatrix:
> The index or tag of the selected cell?
>
> Jerry Krinock
>
>
>  _______________________________________________
> 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


 _______________________________________________
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: Jerry Krinock <email@hidden>
References: 
 >NSMatrix -objectValue always gives 1. What good is that? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: NSComboBox Bindings
  • Next by Date: Re: Installer Check to see if it's an Intel Mac
  • Previous by thread: 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