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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to