From: Knud H. M. <knu...@de...> - 2008-04-14 10:57:20
|
Hi, please forgive me if this is a stupid question to ask, but is it possible to import a Ruby class definition into Obj-C? What I mean is this: I have a RubyCocoa class: class KNTiledMap < OSX::NSObject attr_accessor :dimensions ... end I have an Obj-C class in which I want to use the Ruby class: @interface KNTileView : NSView { KNTiledMap *dataSource; } @implementation KNTileView ... NSSize originalSize = [dataSource dimensions]; ... @end This leads to a compile "error: invalid initializer". How can I make this work? Cheers, Knud ------------------------------------------------- Knud Möller, MA +353 - 91 - 495086 Smile Group: http://smile.deri.ie Digital Enterprise Research Institute National University of Ireland, Galway Institiúid Taighde na Fiontraíochta Digití Ollscoil na hÉireann, Gaillimh |