From: Rod S. <rsc...@xm...> - 2005-04-07 05:04:10
|
I want my model objects to be pure ruby objects and of course the UI classes (controllers, etc.) are Cocoa objects (they inherit from NSObject). However whenever a controller creates a pure ruby object and passes it as a parameter to a method (say to tell another controller about it). The pure ruby object gets wrapped up and becomes a Cocoa object. Then when I execute code that expects pure ruby objects, it doesn't work. Any suggestions? Is there a way to get the pure ruby object back from the wrapper? Thanks, Rod Schmidt infiniteNIL, LLC. |