From: Jonathan P. <jp...@dc...> - 2006-01-06 16:13:32
|
On 6 Jan 2006, at 16:01, Aidan Rogers wrote: > I'm trying to wrap a class from one of Apple's frameworks that's > not yet supported by RubyCocoa. If successful, I'd be keen to > share it out with everyone else :-) Which class is it specifically you're trying to support? Here is part of my response to a previous post asking about support for CoreImage: <<<< You could possibly have a go yourself by looking at how the WebKit interface is handled - purely from ruby. See osx/webkit.rb and osx/ objc/webkit.rb. To summarise (you need to look at osx/objc/webkit.rb to see the details): (1) load the CoreImage framework (2) ns_import the classes needed (3) define integer constants/enums (4) create NSString (or other object) constants by using objc_symbol_to_obj >>>> Hope that is of some help. |