• 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
Drawing background windows during window move.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing background windows during window move.


  • Subject: Drawing background windows during window move.
  • From: Garrett Moon <email@hidden>
  • Date: Tue, 17 Mar 2009 10:38:37 -0700

I have two windows in an application, a GuideWindow and a RegularWindow. The GuideWindow covers all screens and displays guide lines that match up with the edges of the contentView in RegularWindow. When RegularWindow is moved or resized, GuideWindow updates its display to move the guide lines with it. This is achieved through windowDidResize notifications and windowDidMove notifications. when doing a resize, everything works perfectly with the guide lines updating as the RegularWindow is resized.

However, windowDidMove is only called when the user pauses while moving RegularWindow. So I subclassed RegularWindow and made windowDragged send an NSWindowDidMoveNotification (sloppy, I know). This calls the update method of GuideWindow properly, but it still doesn't draw until the user pauses.

I've got some NSLogs in the guide update function, so I know it's being called, but no drawing. I've tried sending the display method to all of the GuideWindow views and to the GuideWindow itself with no avail. I've also tried updating and flushing the window.

Am I missing something? Are only certain drawing events called in the event loop when a window is being dragged? Could this have to do with window backing? Thanks in advance,

-Garrett
_______________________________________________

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


  • Follow-Ups:
    • Re: Drawing background windows during window move.
      • From: Michael Ash <email@hidden>
  • Prev by Date: How to make letters appear in italics?
  • Next by Date: Re: How to make letters appear in italics?
  • Previous by thread: Re: How to make letters appear in italics?
  • Next by thread: Re: Drawing background windows during window move.
  • Index(es):
    • Date
    • Thread