Re: NSColor opacity
Re: NSColor opacity
- Subject: Re: NSColor opacity
- From: Uli Kusterer <email@hidden>
- Date: Fri, 2 Mar 2007 08:46:01 +0100
Am 26.02.2007 um 02:05 schrieb Darkshadow:
In fact, if you change the graphic context's composite operation to
something other than NSCompositeSourceOver, using NSBezierPath's -
fillRect: method will behave differently, while
NSRectFillUsingOperation() will always use the operation you specify.
It'll behave differently than NSRectFill(), but it'll behave just
like every other drawing call, because all of them usually take
graphics state from the context. And since people expect the call to
use the context's current color, it's likely they already know about
that state.
So, I'd still say that we wouldn't lose anything significant if
NSRectFill() and NSRectFillUsingOperation() vanished under a huge
rock. You could just change the operation on the context for that one
case where you actually need a different operation, and it would
remove ambiguity from the libraries.
And in addition prevent this question from popping up on this list ;-)
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden