|
From: Hunter K. <re...@gm...> - 2006-02-17 23:43:15
|
Hiya, I'm fairly new to Cocoa programming. I'm using XCode + Interface Builder, and have been working through "Cocoa Programming for Mac OS X". I'm a long time ruby fan, and have started playing around with the RubyCocoa bindings. Ruby and Objective-C look like a really natural fit, and the binding seems really good. However, I'm having a problem figuring out what I assume must be a pretty simple thing - how do I make a Interface Builder "see" my ruby classes, so I can create an instance of it, and tie it into the nib file? For example, I opened up the simpleapp example. Interface Builder can "see" AppController and MyView. However, in XCode, if I create a new Ruby subclass of NSObject, I can't figure out how to tell Interface Builder about this new class. If it were Obj-C, I'd just drag the .h file onto Interface Builder, but when I try that with the .rb file Interface Builder flicks over to the sounds tab or something. What do I need to be able to do to make Interface Builder aware of my Ruby classes? Cheers, Hunter |