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 |