• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom window resizer: flicker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Custom window resizer: flicker (From: Claudio Procida <email@hidden>)

  • Prev by Date: Re: why there is a memory leak in this method?
  • Next by Date: Re: New WebView
  • Previous by thread: [SOLVED] Re: Custom window resizer: flicker
  • Next by thread: How do I give a set of methods to some objects but not others?
  • Index(es):
    • Date
    • Thread