[MacRuby-devel] Cocoa Binding to NSArrayController
cwdinfo at gmail.com
Mon Jan 11 09:41:23 PST 2010
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?
More information about the MacRuby-devel