[MacRuby-devel] [MacRuby] #131: Dictionary arg not accepted

MacRuby ruby-noreply at macosforge.org
Tue Dec 2 21:53:30 PST 2008


#131: Dictionary arg not accepted
---------------------------------+------------------------------------------
 Reporter:  francois@…           |        Owner:  lsansonetti@…        
     Type:  defect               |       Status:  closed               
 Priority:  major                |    Milestone:  MacRuby 0.4          
Component:  MacRuby              |   Resolution:  fixed                
 Keywords:                       |  
---------------------------------+------------------------------------------
Changes (by lsansonetti@…):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 The Pointer class was introduced in MacRuby trunk to specifically address
 these problems.

 {{{
   pattributes = Pointer.new_with_type('@')
   perror = Pointer.new_with_type('@')
   o = NSAttributedString.alloc.initWithData(data,
 options:NSCharacterEncodingDocumentOption, documentAttributes:pattributes,
 error:perror);
   unless o
     p perror[0]
   else
     p pattributes[0]
   end
 }}}

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



More information about the MacRuby-devel mailing list