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: Yoshiaki Katayanagi <email@hidden>
- Date: Thu, 03 May 2012 17:35:42 +0900
Hi, Jens
>-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
Thanks Jens, but the panel is defined as HUD panel, and to drag it, user should press mouse button on my custom view as it has no title bar. I examined that mouseDragged: and drawRect are called actually.
Yoshiaki Katayanagi
http://www.jizoh.jp/english.html
_______________________________________________
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