On May 2, 2012, at 5:59 PM, Yoshiaki Katayanagi wrote:

> My custom NSView in a NSPanel shows some information depends on panel's 
> position to the main window. I want  to update it during dragging the panel. 
> I try [self setNeedsDisplay:YES] in mouseDragged: delegate

-mouseDragged: is called after the mouse button is pressed *within your view* 
and the cursor moves. It has nothing to do with the window being dragged, since 
after all that’s a mouse-down in the title bar, not your view.

In general views don’t care about and don’t get notified about window movement. 
You can listen to the NSWindowDidMoveNotification posted by the window, if you 
want to know about it.

—Jens
_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to