Re: NSBezierPath problems, seems to be two bugs [solved]

2008-10-30 Thread Jochen Moeller
Hello List two weeks ago I described a remaining shape in the sample code Movie_Overlay, when the NSColor -whiteColor was replaced by -clearColor. Now I have implemented an overlay window in my own app and found the cause for that shape. It is in MyDocument.m the code line:

NSBezierPath problems, seems to be two bugs

2008-10-15 Thread Jochen Moeller
Hello List, in the sample code Movie_Overlay (here with Xcode 3.1.1) http://developer.apple.com/samplecode/Movie_Overlay/index.html both subviews (AnimationView and ImageView) are filled with - whiteColor in -drawRect:. - (void)drawRect:(NSRect)rect { // original AnimationView.m [[NSColor

Re: NSBezierPath problems, seems to be two bugs

2008-10-15 Thread Aki Inoue
Jochen, The behavioral differences you're observing is the result of NSCompositingOperation setting. NSRectFill() uses NSCompositeCopy whereas NSBezierPath does not modify the current setting that is accessible via -[NSGraphicsContext compositingOperation]. Aki On 2008/10/15, at 4:56,

Re: NSBezierPath problems, seems to be two bugs

2008-10-15 Thread Jochen Moeller
Hi Aki, thanks a lot for the valuable info which was new to me. With setting NSCompositeCopy of the current context I could exactly reproduce the feature of NSRectFill() with -fillRect:. This means that also the light grey shape still remains during the animation which was the reason for me