Re: Are there any way to update NSPanel content during dragging the panel ?
Re: Are there any way to update NSPanel content during dragging the panel ?
- Subject: Re: Are there any way to update NSPanel content during dragging the panel ?
- From: Jens Alfke <email@hidden>
- Date: Wed, 02 May 2012 21:31:23 -0700
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@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