Ticket #152 (closed defect: fixed)
KVC arguments not properly marshalled
| Reported by: | ben@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.4 |
| Component: | MacRuby | Keywords: | |
| Cc: | ben@… |
Description
An argument isn’t being marshalled properly to mutable array KVC accessors.
class KVCTest def initialize; @a = []; end def countOfThings; @a.size; end def objectInThingsAtIndex(i); @a[i]; end end KVCTest.new.valueForKey 'things' irb(main):015:0> KVCTest.new.valueForKey 'things' TypeError: no implicit conversion from nil to integer from (irb):11:in `[]' from (irb):11:in `objectInThingsAtIndex' from bin/irb:12:in `<main>'
Not sure why objectInThingsAtIndex: is getting a nil arg here.
Change History
Note: See
TracTickets for help on using
tickets.

