[MacRuby-devel] [MacRuby] #417: can't access vCardRepresentation.bytes of ABPerson

MacRuby ruby-noreply at macosforge.org
Sun Nov 1 17:13:09 PST 2009


#417: can't access vCardRepresentation.bytes of ABPerson
-------------------------------------+--------------------------------------
 Reporter:  vilandgr@…               |        Owner:  lsansonetti@…        
     Type:  defect                   |       Status:  closed               
 Priority:  major                    |    Milestone:  MacRuby 0.5          
Component:  MacRuby                  |   Resolution:  fixed                
 Keywords:  pointer                  |  
-------------------------------------+--------------------------------------
Changes (by lsansonetti@…):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  => MacRuby 0.5


Comment:

 I suspect you are using MacRuby 0.5 beta1. This bug has been fixed in
 trunk since a few days (you can install the latest nightly build from
 http://macruby.icoretech.org/):

 {{{
 $ macruby -e "framework 'AddressBook'; p
 ABAddressBook.sharedAddressBook.people.first.vCardRepresentation.bytes"
 #<Pointer:0x2003768c0>
 }}}

 Note that this returns you a Pointer instance, which behaves like an Array
 of bytes. If you want to save the data on disk I recommend using the
 NSData object.

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



More information about the MacRuby-devel mailing list