From: Constant D. <con...@re...> - 2008-01-25 18:08:17
|
Hi again, Sorry for previous noise, it look's like the problem doesn't come =20 from my RubyCocoa installation, but from the RedArtisan module. I will dig with author. Constant Le 24-janv.-08 =E0 19:52, Constant Dupuis a =E9crit : > Hi, > > I just discover RubyCocoa and try to use it to manipulate images. > I'm pretty new to OS X and ruby development. > > So I get code from RedArtisan (http://redartisan.com/tags/core% > 20image) about using CoreImage with Ruby. > > I write the following test code > > > require 'red_artisan/core_image/processor' > > if Object.const_defined?(:OSX) > puts "CoreImage loaded" > p =3D RedArtisan::CoreImage::Processor.new OSX::CIImage.from > ('source.jpg') > p.resize(640, 480) > p.render do |result| > result.save('resized.jpg', OSX::NSJPEGFileType) > end > else > puts "CoreImage not loaded, tests not running" > end > > And I get this error message : > > /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/ > objc/oc_wrapper.rb:50:in `ocm_send': Can't get Objective-C method > signature for selector 'initWithCIImage:' of receiver > #<OSX::NSBitmapImageRep:0xa9009c class=3D'NSBitmapImageRep' > id=3D0x2c2f310> (OSX::OCMessageSendException) > from /Library/Frameworks/RubyCocoa.framework/Versions/A/ > Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing' > from ./red_artisan/core_image/processor.rb:112:in `save' > from test.rb:9 > from ./red_artisan/core_image/processor.rb:72:in `call' > from ./red_artisan/core_image/processor.rb:72:in `render' > from test.rb:8 > > After looking in the RubyCocoa Framework source code. I found that it > should load CoreGraphics framework and I don't find it in my /Library/ > Framework folder ! > > I install XCode tool so didi I miss something ? > > Thanks > > Constant > > ----------------------------------------------------------------------=20= > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |