On 01/09/2009, at 11:31 PM, Dave Keck wrote:

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.

Right, and for the record, your advice to do this:

   [[cView window] display];
   [[cView window] invalidateShadow];

turned out to be the most reliable.

As you suggest, it seems the order of the calls is important.

Ron
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to