From: Jon B. <jo...@jo...> - 2007-06-20 14:56:17
|
Hi, I need to implement something which requires the NSCopying protocol + want to know if attr_accessor will handle this automatically or if returning self is how this would/should work: def copyWithZone OSX::NSLog "Copy with zone called" return self end My object was a normal Ruby object but since it requires this method Ive extending OSX::NSObject and wondering if this will automagically work for doing this, any ideas or pointers? Thanks. - Jon |