Re: Cutsom NSRulerView : strange problems with drawing
Re: Cutsom NSRulerView : strange problems with drawing
- Subject: Re: Cutsom NSRulerView : strange problems with drawing
- From: Uli Kusterer <email@hidden>
- Date: Tue, 22 May 2007 11:55:48 +0200
On 22.05.2007, at 11:11, Eric MORAND wrote:
Well, the standard behavior of NSRulerView tends to prove that the
drawRect... methods are allowed to draw outside the "dirty" rect :
when a ruler is scaled, it redisplays every hash marks in its bound
area (not only in the "dirty" rect) to match the stepUp and
stepDown cycles of the current measure unit.
My guess would be that either the ruler view itself or the owner of
it knows the thing is being scaled and invalidates that. The view can
draw wherever it wants, but it can't rely on being able to redraw non-
invalidated areas. That simply doesn't work reliably. It's the API
contract: To redraw something, first invalidate it.
Of course you can send off drawing commands for everything, but it's
up to AppKit to clip or draw as it pleases.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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