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 21:26:04 +0200
On 22.05.2007, at 12:15, Eric MORAND wrote:
How are the 645 previous pixels drawn ?
Is this some kind of magic ?
AppKit is probably just moving over the bitmap data. They're
probably using NSCopyBits() or something like Carbon's ScrollRect()
to do that. But why do you care? If you want to redraw everything,
make sure it gets invalidated using setNeedsDisplay:, and you'll be
called to redraw those parts of your view. Otherwise, just leave it
up to AppKit to call you for all parts that it thinks need to be
redrawn.
Are you just curious (a completely fine and commendable trait), or
is there some other problem you have that I'm not understanding?
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