From: FUJIMOTO Hisakuni Date: 2003-05-15T09:24:48+09:00 Subject: Re: Using Ruby-Cocoa - how to send a Obj-C object a msg? At Thu, 15 May 2003 04:05:49 +0900, Sam Griffith wrote: > But part of the question still stands! How do I tell Ruby-Cocoa about a new > Obj-C class that I've created and want to use from Ruby? Use a module function OSX::ns_import to import an Objective-C class which was already loaded on Objective-C world. OSX.ns_import :YourObjcClass # Here, you can use YourObjcClass on Ruby world. obj = OSX::YourObjcClass.alloc.init Incidentally, when YourObjcClass exist on the other framework, and you want to load the framework. In such a case you may use NSBundle to load it. For example appear in RubyCocoa.framework/Resources/ruby/osx/objc/addressbook.rb: # load AddressBook.framework NSBundle.bundleWithPath("/System/Library/Frameworks/AddressBook.framework").load regards, -- FUJIMOTO Hisakuni