From: Laurent S. <lsa...@ap...> - 2007-09-05 16:05:12
|
On Sep 5, 2007, at 4:54 PM, Yvon Thoraval wrote: > 2007/9/5, Laurent Sansonetti <lsa...@ap...>: Yvon, > > What you need to do is write a custom view that would draw a rotated > image. Then you can use NSAnimation or NSTimer to force the display of > the control. > > There are no problems specific to RubyCocoa. > > > then you mean, apart from the NSButton ? > that's to say not having the NSButton image rotating (as in apple > iSync) but rather another image aside of it ? 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. Laurent |