Re: Shiny little square buttons
Re: Shiny little square buttons
- Subject: Re: Shiny little square buttons
- From: Ricky Sharp <email@hidden>
- Date: Mon, 3 Jul 2006 15:28:30 -0500
On Jul 3, 2006, at 2:04 PM, Gerd Knops wrote:
On Jul 3, 2006, at 4:23 AM, Uli Kusterer wrote:
NSRectFill & Co. are for *replacing* a color in a rect (e.g. to
reset the alpha channel of an NSImage). Why does everybody insist
on using the functions when we have a perfectly good fillRect
method in NSBezierPath?
Uli, I don't see the word "replace" used in the docs. Where did you
read that?
And the difference/reason to use one over the other would be? They
both fill a rectangle with a color, right?
Exactly. There may have been a thread a while back in comparing the
performance of NSFillRect and NSBezierPath.fillRect. Can't find it
though via brief googling.
I use NSRectFill and its sibling NSRectFillUsingOperation all the
time. For better performance, one can also use the "FillList"
variations on those APIs. I only use NSBezierPath for non-rectangle
stuff.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden