You can subscribe to this list here.
2002 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(3) |
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(1) |
Feb
(11) |
Mar
(9) |
Apr
(1) |
May
(5) |
Jun
(5) |
Jul
(4) |
Aug
(3) |
Sep
(15) |
Oct
(8) |
Nov
(9) |
Dec
(11) |
2004 |
Jan
(5) |
Feb
(2) |
Mar
(1) |
Apr
(3) |
May
(6) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
|
Dec
(3) |
2005 |
Jan
(1) |
Feb
(7) |
Mar
(6) |
Apr
(36) |
May
(20) |
Jun
(42) |
Jul
(21) |
Aug
(12) |
Sep
(56) |
Oct
(5) |
Nov
(55) |
Dec
(53) |
2006 |
Jan
(43) |
Feb
(83) |
Mar
(98) |
Apr
(42) |
May
(68) |
Jun
(55) |
Jul
(50) |
Aug
(104) |
Sep
(13) |
Oct
(70) |
Nov
(37) |
Dec
(42) |
2007 |
Jan
(56) |
Feb
(18) |
Mar
(43) |
Apr
(80) |
May
(65) |
Jun
(149) |
Jul
(103) |
Aug
(71) |
Sep
(62) |
Oct
(67) |
Nov
(72) |
Dec
(63) |
2008 |
Jan
(64) |
Feb
(63) |
Mar
(31) |
Apr
(42) |
May
(71) |
Jun
(62) |
Jul
(37) |
Aug
(25) |
Sep
(5) |
Oct
(2) |
Nov
(7) |
Dec
(14) |
2009 |
Jan
(20) |
Feb
(15) |
Mar
(19) |
Apr
(8) |
May
(7) |
Jun
|
Jul
(37) |
Aug
(12) |
Sep
(19) |
Oct
(5) |
Nov
(1) |
Dec
(4) |
2010 |
Jan
(5) |
Feb
(24) |
Mar
(16) |
Apr
(9) |
May
(4) |
Jun
|
Jul
|
Aug
(6) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(7) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(5) |
Dec
|
2016 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
(1) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Eloy D. <e....@su...> - 2008-02-02 14:09:11
|
Hey Michal, Well that depends of course on what kind of data it is etc. And I think you'll have more success with this question on either a =20 pure ruby or cocoa mailing list. You could save it through conventional ruby ways, maybe Marshal #dump/=20= #load, which is more of a ruby-lang ml question. Or through cocoa ways, in which case this would be more of a question =20= for the cocoa-dev ml. Anyway, I would advice you to at least write a bit more context of =20 what it is that you are trying to save and if you have special =20 requirements. Eloy. On 2 feb 2008, at 15:01, Michal Malinowski wrote: > Hey! > > I'll try it later. But I got next question, I have data in " =20 > @@bundle =3D [@@bz1, @@bz2, @@bz3, @@bo1, @@bo2, @@bo3, @@czas, =20 > @@zakloceniabz1, @zakloceniabz2, @zakloceniabz3, @regulator]" and I =20= > need to save it to file, and read it from that file too. So mayby =20 > some clues. Thanks for any help. > > Best Regards Michal > Wiadomo=C5=9B=C4=87 napisana w dniu 2008-02-02, o godz 14:27, przez = Eloy =20 > Duran: > >> Hi Michal, >> >> Well it seems that you are sending the #bounds=3D message >> to the NSApplication instance rather than to a Game instance. >> >> This is the code: >> >> class GameView < OSX::NSView >> ib_outlets :game >> >> def awakeFromNib >> window.setOpaque(false) >> @game.bounds =3D bounds >> @timer =3D =20 >> OSX=20 >> ::NSTimer=20 >> .scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_=20 >> (1.0/60.0, self, :tick, nil, true) >> end >> end >> So the line that's causing the error is: "@game.bounds =3D bounds" >> because if an objc object does not respond to a setter method, in =20 >> this case #bounds=3D(val), >> RubyCocoa will try to turn it into a objc (old) style setter =20 >> method, which would be #setBounds(val). >> So maybe you have connected the ib_outlet to the wrong object in IB? >> >> Hope this helps. >> >> Eloy >> On 2 feb 2008, at 11:50, Michal Malinowski wrote: >> >>> Hey! >>> I got that Rubyrocks example from = http://www.rubycocoa.com/ruby-rocks/=20 >>> and I got problem while I'm Building program. The problem from =20 >>> console is >>> 2008-02-02 11:47:08.890 grafika1[653:10b] GameView#awakeFromNib: =20 >>> OSX::OCMessageSendException: Can't get Objective-C method =20 >>> signature for selector 'setBounds:' of receiver =20 >>> #<OSX::NSApplication:0x2d348 class=3D'NSApplication' id=3D0x3e79e0> >>> >>> Best Regards Michal >>> = ------------------------------------------------------------------------- >>> 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 >> >> = ------------------------------------------------------------------------- >> 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 > > = ------------------------------------------------------------------------- > 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 |
From: Michal M. <mmi...@gm...> - 2008-02-02 14:02:07
|
Hey! I'll try it later. But I got next question, I have data in " @@bundle =20= =3D [@@bz1, @@bz2, @@bz3, @@bo1, @@bo2, @@bo3, @@czas, @@zakloceniabz1, =20= @zakloceniabz2, @zakloceniabz3, @regulator]" and I need to save it to =20= file, and read it from that file too. So mayby some clues. Thanks for =20= any help. Best Regards Michal Wiadomo=B6=E6 napisana w dniu 2008-02-02, o godz 14:27, przez Eloy = Duran: > Hi Michal, > > Well it seems that you are sending the #bounds=3D message > to the NSApplication instance rather than to a Game instance. > > This is the code: > > class GameView < OSX::NSView > ib_outlets :game > > def awakeFromNib > window.setOpaque(false) > @game.bounds =3D bounds > @timer =3D =20 > OSX=20 > ::NSTimer=20 > .scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_=20 > (1.0/60.0, self, :tick, nil, true) > end > end > So the line that's causing the error is: "@game.bounds =3D bounds" > because if an objc object does not respond to a setter method, in =20 > this case #bounds=3D(val), > RubyCocoa will try to turn it into a objc (old) style setter method, =20= > which would be #setBounds(val). > So maybe you have connected the ib_outlet to the wrong object in IB? > > Hope this helps. > > Eloy > On 2 feb 2008, at 11:50, Michal Malinowski wrote: > >> Hey! >> I got that Rubyrocks example from = http://www.rubycocoa.com/ruby-rocks/=20 >> and I got problem while I'm Building program. The problem from =20 >> console is >> 2008-02-02 11:47:08.890 grafika1[653:10b] GameView#awakeFromNib: =20 >> OSX::OCMessageSendException: Can't get Objective-C method signature =20= >> for selector 'setBounds:' of receiver #<OSX::NSApplication:0x2d348 =20= >> class=3D'NSApplication' id=3D0x3e79e0> >> >> Best Regards Michal >> = ------------------------------------------------------------------------- >> 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 > > = ------------------------------------------------------------------------- > 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 |
From: Eloy D. <e....@su...> - 2008-02-02 13:27:41
|
Hi Michal, Well it seems that you are sending the #bounds= message to the NSApplication instance rather than to a Game instance. This is the code: class GameView < OSX::NSView ib_outlets :game def awakeFromNib window.setOpaque(false) @game.bounds = bounds @timer = OSX ::NSTimer .scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_ (1.0/60.0, self, :tick, nil, true) end end So the line that's causing the error is: "@game.bounds = bounds" because if an objc object does not respond to a setter method, in this case #bounds=(val), RubyCocoa will try to turn it into a objc (old) style setter method, which would be #setBounds(val). So maybe you have connected the ib_outlet to the wrong object in IB? Hope this helps. Eloy On 2 feb 2008, at 11:50, Michal Malinowski wrote: > Hey! > I got that Rubyrocks example from http://www.rubycocoa.com/ruby- > rocks/ and I got problem while I'm Building program. The problem > from console is > 2008-02-02 11:47:08.890 grafika1[653:10b] GameView#awakeFromNib: > OSX::OCMessageSendException: Can't get Objective-C method signature > for selector 'setBounds:' of receiver #<OSX::NSApplication:0x2d348 > class='NSApplication' id=0x3e79e0> > > Best Regards Michal > ------------------------------------------------------------------------- > 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 |
From: Michal M. <mmi...@gm...> - 2008-02-02 10:50:33
|
Hey! I got that Rubyrocks example from http://www.rubycocoa.com/ruby-rocks/ and I got problem while I'm Building program. The problem from console is 2008-02-02 11:47:08.890 grafika1[653:10b] GameView#awakeFromNib: OSX::OCMessageSendException: Can't get Objective-C method signature for selector 'setBounds:' of receiver #<OSX::NSApplication:0x2d348 class='NSApplication' id=0x3e79e0> Best Regards Michal |
From: Patrick G. <pge...@wa...> - 2008-02-01 13:19:33
|
Hello, > Sorry if this has been discussed before but I haven't been able to > understand if RubyCocoa supports "Core Animation". What is the > status of that support? Any examples available of CA use in RC? Yes, it's supported. I have found no official sample code, but you can find some stuff around. http://discussions.apple.com/thread.jspa?messageID=5736331 is a custom view that will animate text to where you clicked. -Patrick |
From: Robert F. <rob...@bt...> - 2008-02-01 08:07:33
|
Hi, Sorry if this has been discussed before but I haven't been able to understand if RubyCocoa supports "Core Animation". What is the status of that support? Any examples available of CA use in RC? -- Best regards, /Robert Feldt |
From: Yvon T. <yvo...@gm...> - 2008-02-01 08:05:10
|
because i need to use the AddressBook framework, i'm following the example "ABPresence". however if, in AddressBook preferences, i switch to/from last name first / first name first (the AddressBook UI is right switching) i don't see this switching in the variable "lastNameFirst" : lastNameFirst = (flags & KABNameOrderingMask) == KABLastNameFirst similarly to "ABPersonDisplayName.rb" if i write a "firstNameFirst" var, as for "lastNameFirst" i get allways false as a resut. then having both : lastNameFirst === firstNameFirst === false is there a known bugg (in the framework itself ???) best, yvon |
From: Tim P. <he...@ti...> - 2008-01-31 18:24:24
|
Hey all, I know the core team did a lot of work with libxml-ruby for Plist parsing, and I have libxml-ruby installed no problem. However, libxsl- ruby just wont install at all on OSX as it complains about an architecture issue. I was wondering if anyone has had any luck installing libxsl on OSX and how they resolved the problems? Cheers Tim |
From: Patrick G. <pge...@wa...> - 2008-01-30 15:18:29
|
Hello, Is there a way to catch all exceptions with a global handler, like window.onerror in Javascript ? Thanks, -Patrick |
From: Eloy D. <e....@su...> - 2008-01-30 13:08:28
|
Hi, Satoshi-san has let me know that for him the sample works as expected on the latest svn revision. So could the people that have this problem please put the following somewhere in your code to verify which version is being used?: p OSX::RUBYCOCOA_SVN_REVISION For me it's "2179:2180". Cheers, Eloy On 29 jan 2008, at 21:22, Ferhat Ayaz wrote: > Hi Eloy, > > Thanks. I get the error message after I add a mailbox entry. > > Ferhat > > 2008-01-29 21:19:27.145 MailDemoActiveRecordBindings[6672:10b] > OSX::ActiveRecordSetController#newObject: NoMethodError: undefined > method `reflect_on_all_associations' for NilClass > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_import.rb:751:in `method_missing' > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > active_record.rb:275:in `is_association?' > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > active_record.rb:374:in `initialize' > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > active_record.rb:72:in `objectClass' > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > active_record.rb:72:in `newObject' > /Developer/Examples/RubyCocoa/MailDemo/MailDemoActiveRecordBindings/ > build/Release/MailDemoActiveRecordBindings.app/Contents/Resources/ > rb_main.rb:17:in `NSApplicationMain' > /Developer/Examples/RubyCocoa/MailDemo/MailDemoActiveRecordBindings/ > build/Release/MailDemoActiveRecordBindings.app/Contents/Resources/ > rb_main.rb:17 > /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/ > oc_import.rb:751:in `method_missing': undefined method > `reflect_on_all_associations' for NilClass (NoMethodError) > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/active_record.rb:275:in `is_association?' > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/active_record.rb:374:in `initialize' > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/active_record.rb:72:in `objectClass' > from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/ > objc/active_record.rb:72:in `newObject' > from /Developer/Examples/RubyCocoa/MailDemo/ > MailDemoActiveRecordBindings/build/Release/ > MailDemoActiveRecordBindings.app/Contents/Resources/rb_main.rb:17:in > `NSApplicationMain' > from /Developer/Examples/RubyCocoa/MailDemo/ > MailDemoActiveRecordBindings/build/Release/ > MailDemoActiveRecordBindings.app/Contents/Resources/rb_main.rb:17 > > > ----- Original Message ---- > From: Eloy Duran <e....@su...> > To: rub...@li... > Sent: Tuesday, January 29, 2008 5:14:18 PM > Subject: [Rubycocoa-talk] Testers wanted. > > Hi all, > > Could the people who are on RubyCocoa trunk please test > the MailDemoActiveRecordBindings sample in rev. 2180. > > Because there were multiple reports from people which > seem to run into problems with recent changes to the ActiveRecord > stuff, > however I don't seem to experience those problems. > > Thanks in advance, > Eloy > > ------------------------------------------------------------------------- > 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 > > > Looking for last minute shopping deals? Find them fast with Yahoo! > Search > .------------------------------------------------------------------------- > 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 |
From: <Joe...@la...> - 2008-01-30 08:36:23
|
A late happy new year wish to all, I get a malloc error when I try to use the phonemesFromText method of =20= the NSSpeechSynthesizer class. ----test irb---- Villon:~ brogniar$ irb >> require 'osx/cocoa' =3D> true >> puts OSX::RUBYCOCOA_VERSION 0.12.0 =3D> nil >> include OSX =3D> Object >> speaker =3D NSSpeechSynthesizer.alloc.init =3D> #<OSX::NSSpeechSynthesizer:0x297d4a class=3D'NSSpeechSynthesizer' =20= id=3D0x1b81790> >> text =3D "abc" =3D> "abc" >> phonemes =3D speaker.phonemesFromText(text) (1314,0xa0371f60) malloc: *** mmap(size=3D2442014720) =20= failed (error code=3D12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug =3D> nil >> text =3D NSString.alloc.init("abc") =3D> #<OSX::NSCFString:0x294faa class=3D'NSCFString' id=3D0xa07b0258> >> phonemes =3D speaker.phonemesFromText(text) (1314,0xa0371f60) malloc: *** mmap(size=3D3221200896) =20= failed (error code=3D12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug =3D> nil >> -------------- I can use the startSpeakingString without problem. Am I doing =20 something wrong? Yours, Jo=EBl Brogniart= |
From: Ferhat A. <fer...@ya...> - 2008-01-29 20:22:25
|
Hi Eloy, Thanks. I get the error message after I add a mailbox entry. Ferhat 2008-01-29 21:19:27.145 MailDemoActiveRecordBindings[6672:10b] OSX::ActiveRecordSetController#newObject: NoMethodError: undefined method `reflect_on_all_associations' for NilClass /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_import.rb:751:in `method_missing' /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/active_record.rb:275:in `is_association?' /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/active_record.rb:374:in `initialize' /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/active_record.rb:72:in `objectClass' /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/active_record.rb:72:in `newObject' /Developer/Examples/RubyCocoa/MailDemo/MailDemoActiveRecordBindings/build/Release/MailDemoActiveRecordBindings.app/Contents/Resources/rb_main.rb:17:in `NSApplicationMain' /Developer/Examples/RubyCocoa/MailDemo/MailDemoActiveRecordBindings/build/Release/MailDemoActiveRecordBindings.app/Contents/Resources/rb_main.rb:17 /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_import.rb:751:in `method_missing': undefined method `reflect_on_all_associations' for NilClass (NoMethodError) from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/active_record.rb:275:in `is_association?' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/active_record.rb:374:in `initialize' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/active_record.rb:72:in `objectClass' from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/active_record.rb:72:in `newObject' from /Developer/Examples/RubyCocoa/MailDemo/MailDemoActiveRecordBindings/build/Release/MailDemoActiveRecordBindings.app/Contents/Resources/rb_main.rb:17:in `NSApplicationMain' from /Developer/Examples/RubyCocoa/MailDemo/MailDemoActiveRecordBindings/build/Release/MailDemoActiveRecordBindings.app/Contents/Resources/rb_main.rb:17 ----- Original Message ---- From: Eloy Duran <e....@su...> To: rub...@li... Sent: Tuesday, January 29, 2008 5:14:18 PM Subject: [Rubycocoa-talk] Testers wanted. Hi all, Could the people who are on RubyCocoa trunk please test the MailDemoActiveRecordBindings sample in rev. 2180. Because there were multiple reports from people which seem to run into problems with recent changes to the ActiveRecord stuff, however I don't seem to experience those problems. Thanks in advance, Eloy ------------------------------------------------------------------------- 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 ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
From: Cory L. <co...@ma...> - 2008-01-29 20:17:12
|
Thanks for the input. Things are starting to make sense. I'm still a bit lost on the new record thing. I think my confusion is when it comes to the bindings/outlets. I've done the following as suggested: class MyController < OSX::NSObject ib_outlet :record_set_controller def some_action # add a new record, with proxy, to the managed content of the ActiveRecordSetController @record_set_controller.addObject MyClassProxy.create end end some_action is triggered when enter is pressed in a text field. In IB I've added a key to MyClassProxy for record_set_controller (and several variations similar), but I continue to get this error: MyController#rbValueForKey: OSX::OCMessageSendException: Can't get Objective-C method signature for selector 'create' of receiver MyClassProxy. I feel like I'm on the verge of getting this, but staring at the screen with the same results for the past few hours is getting me no where. Would you happen to know if there is an example that might help explain this process? I think the issue is stemming from MyController not being able to properly access MyClass or MyClassProxy as any attempt to even use methods in those classes results in a similar error. Thanks again for your help so far. Cory On Jan 29, 2008, at 1:20 AM, Eloy Duran wrote: > Ah ok, I thought you wanted to update a NSTableColumn. > > If you just want to deal with ActiveRecord data, you should only deal > with > that in your model, so in your case MyClass something like: > > class MyClass < ActiveRecord::Base > before_update :update_price > > def update_price > self.price = 342 > end > end > > The proxies are just a very thin layer between the model and bindings. > So all your data stuff goes into to the model and if you need to do > some > special work on your data when it goes from the model to the bindings > or vice vers > then you do that in the proxy. > > When you create a new record and a proxy for it you still need to add > it to the collection that's > being managed by the ActiveRecordSetController. The > ActiveRecordSetController is a > subclass of NSArrayController, so you can check the docs for that on > adding objects to the collection: > http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSArrayController_Class/Reference/Reference.html > > If you want to do this you'll need a reference (IB outlet) to the > ActiveRecordSetController in your controller. > You can then do something like: > > class MyController < OSX::NSObject > ib_outlet :record_set_controller > > def some_action(sender) > # add a new record, with proxy, to the managed content of the > ActiveRecordSetController > @record_set_controller.addObject MyClassProxy.create > end > end > > Cheers, > Eloy > > On 29 jan 2008, at 01:32, Cory Loken wrote: > >> Right now my solution is very specific to the task: >> >> #in MyProxy >> def rbSetValue_forKey(value, key) >> if key.to_s == 'upc' >> @record[key.to_s] = value.to_ruby rescue nil >> @record["price"] = 342 rescue nil >> result = @record.save >> else >> super(value, key) >> end >> end >> >> I figure I can revisit it once I get some other concepts tackled >> first. >> >> I'm a bit confused by the proxy thing. I have a something like >> MyClass, MyProxy, and MyController. In the controller I can create >> the >> new record, but nothing shows up in the table until I restart the >> app. >> I think this is where my understanding of the proxy is breaking down. >> MyController.create works fine, but any variation of MyProxy.create >> or >> something with to_activerecord_proxy just results in my loss and >> confusion. >> >> Do you have any suggestions on documentation? I've been picking apart >> the includes and examples, but that only gets me so far. >> >> Thanks for the previous suggestions. >> >> Cory >> >> On Jan 28, 2008, at 11:53 AM, Eloy Duran wrote: >> >>> Hi Cory, >>> >>> There's indeed no other way yet to do it then you have done with >>> rbSetValue_forKey. >>> There is only on_get for when data is being requested. >>> >>> I'm interested to see the code on how you did it, so we could maybe >>> turn it into a nicer solution. >>> >>> About creating records from your code, you can simply use the normal >>> way of doing this with AR. >>> So: Mailbox.create etc. >>> >>> But if you're gonna add it to a ActiveRecordSetController, or >>> anything >>> other related to bindings, >>> you'll need a proxy. You can use #to_activerecord_proxy on the AR >>> instance, or create it in one go with: >>> MailboxProxy.create etc. >>> >>> You can than add it to the ActiveRecordSetController with >>> #addObject(proxy). >>> >>> Cheers, >>> Eloy >>> >>> On 28 jan 2008, at 20:37, Cory Loken wrote: >>> >>>> I am just beginning to explore the ActiveRecord support in >>>> RubyCocoa. >>>> Everything works great when I want to allow everything to be >>>> handled >>>> by AR, but there are a few cases where I would like to manipulate >>>> the >>>> data before the records are created, modified, or destroyed. In one >>>> case I would like to update a cell if another column in that row is >>>> modified. I've managed to do this by creating my own >>>> rbSetValue_forKey >>>> method and then calling the super method if I don't need to do >>>> anything special. I am totally lost however on what to do when I >>>> want >>>> to create my own record from values in my script or delete a record >>>> manually. Is this documented anywhere or does anyone have a >>>> suggestion >>>> on how I might do this? >>>> >>>> Thanks for any info. >>>> >>>> Cory >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> 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 >>> >>> >>> ------------------------------------------------------------------------- >>> 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 >> >> Cory >> >> >> ------------------------------------------------------------------------- >> 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 > > > ------------------------------------------------------------------------- > 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 Cory |
From: Eloy D. <e....@su...> - 2008-01-29 16:14:27
|
Hi all, Could the people who are on RubyCocoa trunk please test the MailDemoActiveRecordBindings sample in rev. 2180. Because there were multiple reports from people which seem to run into problems with recent changes to the ActiveRecord stuff, however I don't seem to experience those problems. Thanks in advance, Eloy |
From: Ferhat A. <fer...@ya...> - 2008-01-29 10:39:27
|
Hi Michal, imho use kvc_accessor's and bindings instead of ib_outlets. Bind your sliders to your Kontrolla with the desired keyPath or even better consider each box with sliders as a model class (maybe NSDictionary?) Ferhat Ayaz ----- Original Message ---- From: Michal Malinowski <mmi...@gm...> To: rub...@li... Sent: Tuesday, January 29, 2008 11:31:10 AM Subject: [Rubycocoa-talk] First steps Hi! This are my first steps in Rubycocoa and I hope this is the right place to find some help. I so far read few tutorials, and I know only bacics. So let me describe my problem. I'm doing gui like that http://s32721.ps.pl/pid.png but the code is like that (@the end of post) and it's only for that BZ1, still BZ2, BZ3 and so on. So What is the shortest way to save that data somewhere? (By the way I got whole code from Ruby, and I need to transform it to Rubycocoa if its making some changes.) Best Regards Michal class Kontrola < OSX::NSWindowController ib_outlet :a1Sli, :a1Txt, :a2Sli, :a2Txt, :b1Sli, :b1Txt, :k1Sli, :k1Txt, :k11Sli, :k11Txt, :textField, :t1Sli, :t1Txt, :t2Sli, :t2Txt, :t3Sli, :t3Txt #BZ1 #a def bz1a(sender) a1 = @a1Sli.intValue @a1Txt.setStringValue(a1.to_s) end ib_action :bz1a #b def bz1b(sender) b1 = @b1Sli.intValue @b1Txt.setStringValue(b1.to_s) end ib_action :bz1b #k def bz1k(sender) k1 = @k1Sli.intValue @k1Txt.setStringValue(k1.to_s) end ib_action :bz1k #k1 def bz1k1(sender) k11 = @k11Sli.intValue @k11Txt.setStringValue(k11.to_s) end ib_action :bz1k1 #t1 def bz1t1(sender) t1 = @t1Sli.intValue @t1Txt.setStringValue(t1.to_s) end ib_action :bz1t1 #t2 def bz1t2(sender) t2 = @t2Sli.intValue @t2Txt.setStringValue(t2.to_s) end ib_action :bz1t2 #t3 def bz1t3(sender) t3 = @t3Sli.intValue @t3Txt.setStringValue(t3.to_s) end ib_action :bz1t3 #BZ2 #a def bz2a(sender) a = @a2Sli.intValue @a2Txt.setStringValue(a.to_s) @a2 = a; end ib_action :bz2a2 #b #k #k1 #t1 #t2 #t3 -----Inline Attachment Follows----- ------------------------------------------------------------------------- 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/ -----Inline Attachment Follows----- _______________________________________________ Rubycocoa-talk mailing list Rub...@li... https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |
From: Michal M. <mmi...@gm...> - 2008-01-29 10:31:29
|
Hi! This are my first steps in Rubycocoa and I hope this is the right place to find some help. I so far read few tutorials, and I know only bacics. So let me describe my problem. I'm doing gui like that http://s32721.ps.pl/pid.png but the code is like that (@the end of post) and it's only for that BZ1, still BZ2, BZ3 and so on. So What is the shortest way to save that data somewhere? (By the way I got whole code from Ruby, and I need to transform it to Rubycocoa if its making some changes.) Best Regards Michal class Kontrola < OSX::NSWindowController ib_outlet :a1Sli , :a1Txt , :a2Sli , :a2Txt , :b1Sli , :b1Txt, :k1Sli, :k1Txt, :k11Sli, :k11Txt, :textField, :t1Sli, :t1Txt, :t2Sli, :t2Txt, :t3Sli, :t3Txt #BZ1 #a def bz1a(sender) a1 = @a1Sli.intValue @a1Txt.setStringValue(a1.to_s) end ib_action :bz1a #b def bz1b(sender) b1 = @b1Sli.intValue @b1Txt.setStringValue(b1.to_s) end ib_action :bz1b #k def bz1k(sender) k1 = @k1Sli.intValue @k1Txt.setStringValue(k1.to_s) end ib_action :bz1k #k1 def bz1k1(sender) k11 = @k11Sli.intValue @k11Txt.setStringValue(k11.to_s) end ib_action :bz1k1 #t1 def bz1t1(sender) t1 = @t1Sli.intValue @t1Txt.setStringValue(t1.to_s) end ib_action :bz1t1 #t2 def bz1t2(sender) t2 = @t2Sli.intValue @t2Txt.setStringValue(t2.to_s) end ib_action :bz1t2 #t3 def bz1t3(sender) t3 = @t3Sli.intValue @t3Txt.setStringValue(t3.to_s) end ib_action :bz1t3 #BZ2 #a def bz2a(sender) a = @a2Sli.intValue @a2Txt.setStringValue(a.to_s) @a2 = a; end ib_action :bz2a2 #b #k #k1 #t1 #t2 #t3 |
From: Eloy D. <e....@su...> - 2008-01-29 09:20:26
|
Ah ok, I thought you wanted to update a NSTableColumn. If you just want to deal with ActiveRecord data, you should only deal with that in your model, so in your case MyClass something like: class MyClass < ActiveRecord::Base before_update :update_price def update_price self.price = 342 end end The proxies are just a very thin layer between the model and bindings. So all your data stuff goes into to the model and if you need to do some special work on your data when it goes from the model to the bindings or vice vers then you do that in the proxy. When you create a new record and a proxy for it you still need to add it to the collection that's being managed by the ActiveRecordSetController. The ActiveRecordSetController is a subclass of NSArrayController, so you can check the docs for that on adding objects to the collection: http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSArrayController_Class/Reference/Reference.html If you want to do this you'll need a reference (IB outlet) to the ActiveRecordSetController in your controller. You can then do something like: class MyController < OSX::NSObject ib_outlet :record_set_controller def some_action(sender) # add a new record, with proxy, to the managed content of the ActiveRecordSetController @record_set_controller.addObject MyClassProxy.create end end Cheers, Eloy On 29 jan 2008, at 01:32, Cory Loken wrote: > Right now my solution is very specific to the task: > > #in MyProxy > def rbSetValue_forKey(value, key) > if key.to_s == 'upc' > @record[key.to_s] = value.to_ruby rescue nil > @record["price"] = 342 rescue nil > result = @record.save > else > super(value, key) > end > end > > I figure I can revisit it once I get some other concepts tackled > first. > > I'm a bit confused by the proxy thing. I have a something like > MyClass, MyProxy, and MyController. In the controller I can create the > new record, but nothing shows up in the table until I restart the app. > I think this is where my understanding of the proxy is breaking down. > MyController.create works fine, but any variation of MyProxy.create or > something with to_activerecord_proxy just results in my loss and > confusion. > > Do you have any suggestions on documentation? I've been picking apart > the includes and examples, but that only gets me so far. > > Thanks for the previous suggestions. > > Cory > > On Jan 28, 2008, at 11:53 AM, Eloy Duran wrote: > >> Hi Cory, >> >> There's indeed no other way yet to do it then you have done with >> rbSetValue_forKey. >> There is only on_get for when data is being requested. >> >> I'm interested to see the code on how you did it, so we could maybe >> turn it into a nicer solution. >> >> About creating records from your code, you can simply use the normal >> way of doing this with AR. >> So: Mailbox.create etc. >> >> But if you're gonna add it to a ActiveRecordSetController, or >> anything >> other related to bindings, >> you'll need a proxy. You can use #to_activerecord_proxy on the AR >> instance, or create it in one go with: >> MailboxProxy.create etc. >> >> You can than add it to the ActiveRecordSetController with >> #addObject(proxy). >> >> Cheers, >> Eloy >> >> On 28 jan 2008, at 20:37, Cory Loken wrote: >> >>> I am just beginning to explore the ActiveRecord support in >>> RubyCocoa. >>> Everything works great when I want to allow everything to be handled >>> by AR, but there are a few cases where I would like to manipulate >>> the >>> data before the records are created, modified, or destroyed. In one >>> case I would like to update a cell if another column in that row is >>> modified. I've managed to do this by creating my own >>> rbSetValue_forKey >>> method and then calling the super method if I don't need to do >>> anything special. I am totally lost however on what to do when I >>> want >>> to create my own record from values in my script or delete a record >>> manually. Is this documented anywhere or does anyone have a >>> suggestion >>> on how I might do this? >>> >>> Thanks for any info. >>> >>> Cory >>> >>> >>> ------------------------------------------------------------------------- >>> 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 >> >> >> ------------------------------------------------------------------------- >> 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 > > Cory > > > ------------------------------------------------------------------------- > 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 |
From: Cory L. <co...@ma...> - 2008-01-29 00:32:37
|
Right now my solution is very specific to the task: #in MyProxy def rbSetValue_forKey(value, key) if key.to_s == 'upc' @record[key.to_s] = value.to_ruby rescue nil @record["price"] = 342 rescue nil result = @record.save else super(value, key) end end I figure I can revisit it once I get some other concepts tackled first. I'm a bit confused by the proxy thing. I have a something like MyClass, MyProxy, and MyController. In the controller I can create the new record, but nothing shows up in the table until I restart the app. I think this is where my understanding of the proxy is breaking down. MyController.create works fine, but any variation of MyProxy.create or something with to_activerecord_proxy just results in my loss and confusion. Do you have any suggestions on documentation? I've been picking apart the includes and examples, but that only gets me so far. Thanks for the previous suggestions. Cory On Jan 28, 2008, at 11:53 AM, Eloy Duran wrote: > Hi Cory, > > There's indeed no other way yet to do it then you have done with > rbSetValue_forKey. > There is only on_get for when data is being requested. > > I'm interested to see the code on how you did it, so we could maybe > turn it into a nicer solution. > > About creating records from your code, you can simply use the normal > way of doing this with AR. > So: Mailbox.create etc. > > But if you're gonna add it to a ActiveRecordSetController, or anything > other related to bindings, > you'll need a proxy. You can use #to_activerecord_proxy on the AR > instance, or create it in one go with: > MailboxProxy.create etc. > > You can than add it to the ActiveRecordSetController with > #addObject(proxy). > > Cheers, > Eloy > > On 28 jan 2008, at 20:37, Cory Loken wrote: > >> I am just beginning to explore the ActiveRecord support in RubyCocoa. >> Everything works great when I want to allow everything to be handled >> by AR, but there are a few cases where I would like to manipulate the >> data before the records are created, modified, or destroyed. In one >> case I would like to update a cell if another column in that row is >> modified. I've managed to do this by creating my own >> rbSetValue_forKey >> method and then calling the super method if I don't need to do >> anything special. I am totally lost however on what to do when I want >> to create my own record from values in my script or delete a record >> manually. Is this documented anywhere or does anyone have a >> suggestion >> on how I might do this? >> >> Thanks for any info. >> >> Cory >> >> >> ------------------------------------------------------------------------- >> 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 > > > ------------------------------------------------------------------------- > 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 Cory |
From: Eloy D. <e....@su...> - 2008-01-28 19:54:07
|
Hi Cory, There's indeed no other way yet to do it then you have done with rbSetValue_forKey. There is only on_get for when data is being requested. I'm interested to see the code on how you did it, so we could maybe turn it into a nicer solution. About creating records from your code, you can simply use the normal way of doing this with AR. So: Mailbox.create etc. But if you're gonna add it to a ActiveRecordSetController, or anything other related to bindings, you'll need a proxy. You can use #to_activerecord_proxy on the AR instance, or create it in one go with: MailboxProxy.create etc. You can than add it to the ActiveRecordSetController with #addObject(proxy). Cheers, Eloy On 28 jan 2008, at 20:37, Cory Loken wrote: > I am just beginning to explore the ActiveRecord support in RubyCocoa. > Everything works great when I want to allow everything to be handled > by AR, but there are a few cases where I would like to manipulate the > data before the records are created, modified, or destroyed. In one > case I would like to update a cell if another column in that row is > modified. I've managed to do this by creating my own rbSetValue_forKey > method and then calling the super method if I don't need to do > anything special. I am totally lost however on what to do when I want > to create my own record from values in my script or delete a record > manually. Is this documented anywhere or does anyone have a suggestion > on how I might do this? > > Thanks for any info. > > Cory > > > ------------------------------------------------------------------------- > 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 |
From: Cory L. <co...@ma...> - 2008-01-28 19:38:06
|
I am just beginning to explore the ActiveRecord support in RubyCocoa. Everything works great when I want to allow everything to be handled by AR, but there are a few cases where I would like to manipulate the data before the records are created, modified, or destroyed. In one case I would like to update a cell if another column in that row is modified. I've managed to do this by creating my own rbSetValue_forKey method and then calling the super method if I don't need to do anything special. I am totally lost however on what to do when I want to create my own record from values in my script or delete a record manually. Is this documented anywhere or does anyone have a suggestion on how I might do this? Thanks for any info. Cory |
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 > |
From: Yvon T. <yvo...@gm...> - 2008-01-25 12:11:42
|
after a : runModalForDirectory_file_types( ... ) if i want to set up a text within a NSTextFiled nothing appears on the UI. after this (writing to a NSTextField) I'm browsing diectories to get some informations about the files. does i need to put the writing into NSTextField in a separate thred ? -- yvon |
From: Constant D. <con...@re...> - 2008-01-24 18:53:23
|
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 = 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='NSBitmapImageRep' id=0x2c2f310> (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 |
From: Ferhat A. <fer...@ya...> - 2008-01-23 10:46:38
|
Hi Yvon, you can embed the ruby runtime directly if you want. Here the link http://rubycocoa.sourceforge.net/EmbedRubyCocoa Ferhat ----- Original Message ---- From: Yvon Thoraval <yvo...@gm...> To: rub...@li... Sent: Wednesday, January 23, 2008 11:21:04 AM Subject: [Rubycocoa-talk] install RubyCocoa working with /opt/local/bin/ruby ??? Hey list, I'd like to have RubyCocoa working with /opt/local/bin/ruby. where could i find advice on that point ? -- yvon -----Inline Attachment Follows----- ------------------------------------------------------------------------- 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/ -----Inline Attachment Follows----- _______________________________________________ Rubycocoa-talk mailing list Rub...@li... https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
From: Eloy D. <elo...@gm...> - 2008-01-23 10:45:06
|
Hi Yvon, Follow the instructions in the "sources release" paragraph: http://rubycocoa.sourceforge.net/GettingStarted Eloy On Jan 23, 2008 11:21 AM, Yvon Thoraval <yvo...@gm...> wrote: > > Hey list, > > I'd like to have RubyCocoa working with /opt/local/bin/ruby. > > where could i find advice on that point ? > -- > yvon > ------------------------------------------------------------------------- > 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 > > |