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 |