From: Jonathan P. <jp...@dc...> - 2005-12-05 17:47:20
|
On 4 Dec 2005, at 18:50, Rupert BARROW wrote: > I would like to develop a headless tool (app without a GUI) with > RubyCocoa : how can I create (in Ruby) Objective-C objects ? It's > difficult to #import header.h files :-) , or to connect with > ib_outlets ! You can probably do it already. You don't need to import any header files - most of the classes you need will have been imported into ruby (see the appkit.rb, foundation.rb files etc in RubyCocoa). Does that make sense? require 'osx/cocoa' include OSX object = NSWhatever.alloc.initWithWhatever:... |