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:
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
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,
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