Re: Custom window resizer: flicker
Re: Custom window resizer: flicker
- Subject: Re: Custom window resizer: flicker
- From: Michael Nickerson <email@hidden>
- Date: Fri, 24 Nov 2006 11:36:22 -0500
On Nov 24, 2006, at 9:11 AM, Claudio Procida wrote:
I'm using a custom view as a resizer for an odd-shaped window. It
implements a modal event loop as illustrated in the Cocoa Event
Handling Guide.
The following code seems to do the work, but at some point, when
the mouse has been dragged for a certain distance, the window
"flickers". The vertical size varies rapidly, resulting in a
trembling visual effect.
The horizontal size changes smoothly as expected. What's wrong with
this code?
Try resetting the oldRect with newRect in your NSLeftMouseDragged
portion (i.e. oldRect = newRect) after setting the new frame. You
might also need to reset the startPoint to currentPoint when you do
this.
Darkshadow
(aka Michael Nickerson)
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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