Re: Binding Array of NSNumbers
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