Re: extra redrawing with [self setBounds:] in drawRect:
Re: extra redrawing with [self setBounds:] in drawRect:
- Subject: Re: extra redrawing with [self setBounds:] in drawRect:
- From: Nathan Vander Wilt <email@hidden>
- Date: Mon, 28 Jan 2008 20:58:42 -0600 (CST)
>>In my custom view, I set the bounds in my drawRect:
>>method before drawing. This is so that while the
user
>>is resizing the window, the content stretches with
the
>>view.
[...]
>>Somehow this selection rectangle code triggers
random
>>extra redrawing.
> It is unclear why you need to resize your view
inside of -drawRect:.
> This is surely the root cause of your problem.
I am not resizing the view programmatically via
-setFrame:, I am setting the internal coordinate
system via -setBounds. If I understand correctly, all
this should do is set the transformation matrix. Yet
somehow between doing that and invalidating a part of
the view, I end up getting tons of extra redraw
requests.
____________________________________________________________________________________
¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
http://correo.espanol.yahoo.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden