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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to