[MacRuby-devel] [MacRuby] #575: Bug in Cocoa bindings for NSTableViewColumn + NSArrayController
MacRuby
ruby-noreply at macosforge.org
Sat Jan 23 17:51:27 PST 2010
#575: Bug in Cocoa bindings for NSTableViewColumn + NSArrayController
-----------------------------+----------------------------------------------
Reporter: ninh@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.5
Component: MacRuby | Keywords:
-----------------------------+----------------------------------------------
When an NSTableViewColumn has a subclass of NSTextFieldCell as its data
cell, and when the column is bound to an NSArrayController, then when I
add data to that array controller, it is expected that the arrangedObject
of the array controller will set the datacell's objectValue property
accordingly. The latter only seems to work for NSMutableDictionary
strangely (maybe other cases too, but have only tested this one in
particular) but not for other custom objects. When querying for the
objectValue from within my subclass of NSTextFieldCell, I do however see
that objectValue is set to an object of the right type, but its object id
keeps changing during the draw cycle: I don't think that should be the
case either as the objects in the arraycontroller should correspond to
those in the datacell's objectValue.
Also, objectValue's properties seem to be nil. This basically prevent
people from using Cocoa bindings with NSTableViewColumns and custom
objectValue's.
--
Ticket URL: <http://www.macruby.org/trac/ticket/575>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list