[MacRuby-devel] [MacRuby] #525: NSArray coersion error

MacRuby ruby-noreply at macosforge.org
Sun Dec 27 20:55:49 PST 2009


#525: NSArray coersion error
-------------------------------------+--------------------------------------
 Reporter:  mattaimonetti@…          |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  blocker                  |   Milestone:  MacRuby 0.5          
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------

Old description:

> Here is how to reproduce the bug every single time. (your first contact
> shouldn't be in a group for the error to be reproducible)
>
> {{{
> $ macruby -e "framework 'AddressBook'; puts
> ABAddressBook.sharedAddressBook.people.first.parentGroups"
> core:in `puts:': can't convert __NSArray0 to Array (__NSArray0#to_ary
> gives __NSArray0) (TypeError)
>         from -e:in `<main>'
> }}}

New description:

 Here is how to reproduce the bug every single time. (your first contact
 shouldn't be in a group for the error to be reproducible)

 {{{
 $ macruby -e "framework 'AddressBook'; puts
 ABAddressBook.sharedAddressBook.people.first.parentGroups"
 core:in `puts:': can't convert __NSArray0 to Array (__NSArray0#to_ary
 gives __NSArray0) (TypeError)
         from -e:in `<main>'
 }}}

--

Comment(by lsansonetti@…):

 <rdar://problem/7296998>

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/525#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list