From: Jonathan P. <jp...@dc...> - 2005-12-02 09:48:14
|
On 2 Dec 2005, at 9:13, Dave Baldwin wrote: > I have just tried to use Core Image from rubycocoa and started > getting errors like: > RBException_NameError - uninitialized constant CIFilter > (OSX::OCException) > > looking through the rubycocoa sources it looks like Core Image > isn't included. Is this correct or am I missing something? I think you are correct - CoreImage isn't wrapped yet. 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 helps, Jonathan |