Hi all,
the question might seem unclear or too simple at first, so I will elaborate.
In my application I have a window with certain background color, I have put a custom view in the upper area of the window. After that I wrote a class 'DrawBackground' subclassing NSView(in IB I specified the custom view's class to be 'DrawBackground'). This class simply overwrites the method '-drawRect' and places a background picture on the entire area of the custom view. On this custom view I place 10-15 NSImageViews with transparent background color. Everything worked just fine until I decided to attach a timer to one of the pictures and make it animate(I change 2-3 different images via the timer tick: method). This made the background area of the the animated picture, to inherit the background image of the custom view in smaller scale.
Here are some screen shots:
http://i26.tinypic.com/auazpy.jpg //no custom view, no background => no bug(Animation state1)
http://i28.tinypic.com/2u5ximr.jpg //no custom view, no background => no bug(Animation state2)
http://i31.tinypic.com/33fepsy.jpg // custom view with background => bug(Animation state1)
http://i31.tinypic.com/52gebb.jpg // custom view with background => bug(Animation state2)
I guess my question is how can I get rid of the inherited background and just show my blinking picture as it actually is(with transparent background color).
Any suggestions will be appreciated! Thank you.
Kind Regards
artOf...