Looks like you're bypassing the to_i conversion of @number by calling
instance_variable_set directly, but I'd guess that the problem is somewhere
else in the app.
Any chance you could put the whole thing up on github?

Cheers,
Isaac

On Tue, Jan 12, 2010 at 6:41 AM, steve ross <cwdi...@gmail.com> wrote:

> I wrote a simple controller that binds to an NSTableView. In the tableview,
> a column has an NSNumberFormatter (in IB), but the column is what's bound.
> It's bound to LightboxController.managedObjects:number. The managedObjects
> collection contains a collection of Lightbox objects, that have a number
> (Fixnum, when examined) and a title (string). The title displays fine, but
> the number always displays as 1. Changing the number field to a string and
> removing the NSNumberFormatter produces the correct display, but of course,
> the sort order is string ordering rather than numeric.
>
> Here is the code. Can anyone tell me what I'm missing here?
>
> https://gist.github.com/5d490492a814eccd26b2
>
> Thx,
>
> Steve
>
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to