Change NSButton Background Image more than once per second

Posted by beta on Stack Overflow See other posts from Stack Overflow or by beta
Published on 2010-04-01T07:04:54Z Indexed on 2010/04/01 7:13 UTC
Read the original article Hit count: 360

I am currently working with the iPhone SDK.

I have a NSTimer that changes the background image of a NSButton. Once this is complete, it will trigger the same action again (reset the NSTimer) for a predetermined number of times.

My problem is that if my NSTimer is set to execute more than once per second. (0.75, say) The background image wont change.

I am using NSLog to check that the event fires. But the button image will just remain in its original state.

Is there any way to change the background image more often than once per second?

Thanks.

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about objective-c