[MacRuby-devel] [macruby] #99: fake pointers in collections
macruby
ruby-noreply at macosforge.org
Fri Jul 11 16:54:44 PDT 2008
#99: fake pointers in collections
-----------------------------------+----------------------------------------
Reporter: lsansonetti at apple.com | Owner: lsansonetti at apple.com
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.3
Component: MacRuby | Resolution:
Keywords: |
-----------------------------------+----------------------------------------
Old description:
> Currently, when adding a fake pointer type (true, false, nil, fixnum or
> symbol) to a MacRuby collection, the value is simply passed without being
> converted to an Objective-C value. This breaks Cocoa APIS that expect a
> given array or dictionary to only contain Objective-C objects.
>
> Example: {{{[true].description}}}.
>
> This breaks LimeChat.
New description:
Currently, when adding a fake pointer type (true, false, nil, fixnum or
symbol) to a MacRuby collection, the value is simply passed without being
converted to an Objective-C value. This breaks Cocoa APIS that expect a
given array or dictionary to only contain Objective-C objects.
Example: {{{[true].description}}}.
Other example: {{{a=NSArray.arrayWithObject('foo'); a.index(:foo)}}}.
This breaks LimeChat.
--
Ticket URL: <http://www.macruby.org/trac/ticket/99#comment:1>
macruby <http://macruby.org/>
More information about the MacRuby-devel
mailing list