Ticket #561 (new defect)
serialization/archiving of ruby and obj-c objects
| Reported by: | mattaimonetti@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | major | Milestone: | MacRuby 1.0 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.

