• 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: Binding Array of NSNumbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding Array of NSNumbers


  • Subject: Re: Binding Array of NSNumbers
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 11 Feb 2005 18:24:43 -0500


On Feb 11, 2005, at 2:40 AM, Kevin Ballard wrote:

What about selection.stringValue? Or even just selection?

On Feb 11, 2005, at 1:28 AM, Mike Shields wrote:

What I've got is an NSArrayController whose content array is an array of NSNumbers. I have a way of selecting which index is the current selection and want to display the value of the selection in an NSTextField. If I bind the text field to selection.floatValue (which doesn't seem right in any case), well that crashes in an infinite loop of calls to CFNumberGetValue. Leaving out the key path completely fails as you'd expect.

actually, there are issues with dealing with arrays of simple values. if you had an array of dictionary items with a single field that was the nsnumber, you'd be fine.




_______________________________________________
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: Binding Array of NSNumbers
      • From: Mike Shields <email@hidden>
References: 
 >Binding Array of NSNumbers (From: Mike Shields <email@hidden>)
 >Re: Binding Array of NSNumbers (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: Categories Generating Warnings?
  • Next by Date: Re: Categories Generating Warnings?
  • Previous by thread: Re: Binding Array of NSNumbers
  • Next by thread: Re: Binding Array of NSNumbers
  • Index(es):
    • Date
    • Thread