From: Axel M. R. <rub...@ro...> - 2008-04-14 11:15:06
|
>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: yes, this is possible, and easy. There's a good example online at http://www.rubycocoa.com/an-introduction-to-rubycocoa/ which explains connecting ruby with Objective-C classes. Some of the material is outdated. It is e.g. not necessary anymore to 'ns_import' the OS X classes. I've just recently written an application with 2 Obj.C NSViews, 5 pure ruby classes and 3 rubycocoa classes (inherited from NSObject) works like a charm :) Axel -- _________________________ Axel Roest axelloroestello@{AIM/MSN} - Skype:axellofono - XOIP: 084-8749988 |