From: Yvon T. <yvo...@gm...> - 2007-09-06 08:41:38
|
2007/9/5, Laurent Sansonetti <lsa...@ap...>: > > > > I would subclass NSButton, provide a custom drawing method that would > draw the image, then trigger a timer (using either NSTimer or > NSAnimation) that would increment an index and force the button to be > redrawn. The image would be drawn in a rotated mode based on the timer > index. NO, there is no need for a subclass, Luc Heinrich gave me yesterday a working solution : to make the image of a button rotating, this has to be done in the NSRunLoop. then, the action associated to this "rotating button" has to be done in another thread, this works fine with ruby Tread ! Best, -- yvon |