Re: Problem redrawing views while window resize button is held
Re: Problem redrawing views while window resize button is held
- Subject: Re: Problem redrawing views while window resize button is held
- From: Brian Smith <email@hidden>
- Date: Thu, 15 Mar 2007 09:01:59 +0800
On Mar 15, 2007, at 3:01 AM, Doug F wrote:
I'm having a problem with drawing while resizing a window using the
bottom right corner window resize control. Drawing in a regularly
invalidated (setNeedsDisplay:YES) custom view stops while the
"window resize" control is held down (dragged) but not moved.
I appreciate any thoughts on this matter as I have come up blank
with my searches of the documentation and mailing list archives, etc.
Sounds like they enter a modal event loop on mouseDown: which takes
over handling the events. See the Sketch example code for an example
of how this is implemented. You may have to replace the resize corner
view with your own that lets the main event keep handling the events.
(You may have to override other things.) The reason for doing modal
event loops in the view is improve drawing performance, so you may
end up with a really choppy resize if you modify this behavior.
Regards,
Brian Smith
http://www.suaveware.com
_______________________________________________
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