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 to try -fillRect: ;-)
So one issue is solved, maybe the other will follow?
Thanks again,
Jochen Moeller
On 15.10.2008, at 19:21, Aki Inoue wrote:
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].
This is not what I want because the movie is dimmed with increasing
alpha values in the overlay. So I replaced the -whiteColor by -
clearColor in both -drawRect: and used bounds instead of rect.
Additionally I set the alpha value to 0.5 (instead 0.3) in
MyDocument.
1st Issue:
This worked fine in ImageView but in AnimationView remained a light
grey shape of the animation figure which was not erased by
NSRectFill().
...
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com