> Obviously my technique isn't working because when this happens, the area
> around the control is getting filled with the gradient and the result is
> definitely weird...

  Have you read the Cocoa drawing guide? It goes into great detail
about this very thing. The rect passed in via -drawRect: is only the
part that the system determined needed redrawn. For optimization, you
should try to only update that part of your view. If you don't care
about this, just always use [self bounds].

  Read the docs.

--
I.S.
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to