Re: [Pyobjc-dev] simple animation w/ NSTimer
Brought to you by:
ronaldoussoren
|
From: Carl B. <car...@gm...> - 2008-03-31 22:55:03
|
Thanks guys. I have read the drawing guide, Bob. It was okay. I guess I need to read the guide on Views as well before I ask any more questions. Till then... -Carl On Mon, Mar 31, 2008 at 4:25 PM, Bob Vadnais <pyo...@bo...> wrote: > On Mar 31, 2008, at 8:10 AM, Carl Bauer wrote: > > > Hey John, thanks for the reply. I implemented your changes, but the > > display is still not being refreshed. I put a print statement inside > > tick_(...) and drawRect_(...). When the timer starts, the print > > statement inside the tick method is called right on cue every > > second. The print statement in drawRect, however, is never called, > > despite my self.display() line inside tick. > > I suggest invoking self.setNeedsDisplay_(True) before self.display(). > > Also, read the Cocoa drawing Guide available from > http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaDrawingGuide/CocoaDrawingGuide.pdf > > Ciao, > Bob > > > |