• 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: Problem redrawing views while window resize button is held
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Problem redrawing views while window resize button is held
      • From: "John C. Randolph" <email@hidden>
References: 
 >Problem redrawing views while window resize button is held (From: Doug F <email@hidden>)

  • Prev by Date: Re: release check
  • Next by Date: Re: Problem redrawing views while window resize button is held
  • Previous by thread: Problem redrawing views while window resize button is held
  • Next by thread: Re: Problem redrawing views while window resize button is held
  • Index(es):
    • Date
    • Thread