Re: Drawing over a transparent background
Re: Drawing over a transparent background
- Subject: Re: Drawing over a transparent background
- From: Dave Keck <email@hidden>
- Date: Tue, 1 Sep 2009 03:31:21 -1000
For the record...
It's considered best practice to limit your drawRect: methods to
strictly drawing. Often it's handy to take advantage of drawRect: for
testing, but in production code, my original suggestion isn't a good
idea. 8)
In the past I've seen some nasty misuses of drawRect: (setting the
receiver's frame and such) which led to some even nastier bugs and
overall inelegant code. So yeah, my advice is to stick to drawing in
drawRect: and save yourself the pain later.
_______________________________________________
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
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden