From: kimura w. <ki...@us...> - 2005-04-08 15:10:16
|
Hi, method "__rbobj__" returns wrapped ruby object. RubyCocoa picks up a ruby object from a Cocoa object when the Cocoa object is a parameter of ruby method. I think we do not have to convert ruby <=> Cocoa normally. If not, please tell me more detail. >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. > |