[MacRuby-devel] [MacRuby] #561: serialization/archiving of ruby and obj-c objects

MacRuby ruby-noreply at macosforge.org
Mon Jan 18 18:55:27 PST 2010


#561: serialization/archiving of ruby and obj-c objects
-------------------------------------+--------------------------------------
 Reporter:  mattaimonetti@…          |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  major                    |   Milestone:  MacRuby 0.6          
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
 In Ruby archiving is done using the Marshal class, while in Cocoa, the
 NSCoder abstract class is being used.

 On one hand, currently, in MacRuby, you can marshal down pure Obj-C
 objects and of course things don't look too good when they are restored.
 On the other hand, you can't archive Ruby objects using Cocoa API since
 Ruby objects don't implement the NSCoding protocol.

 We probably need to add NSCoder support in marshal
 And also add the NSCoding protocol methods to new MacRuby classes.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/561>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list