Re: Detecting MouseUp in NSSplitview
Re: Detecting MouseUp in NSSplitview
- Subject: Re: Detecting MouseUp in NSSplitview
- From: Graham Cox <email@hidden>
- Date: Thu, 30 Dec 2010 22:39:12 +1100
On 30/12/2010, at 8:54 PM, Peter Zegelin wrote:
> So it looks like NSSplitView is sufficiently different ( ie it has to move a divider ) that to get the mouseUp event I would have to handle the divider drag myself, which is probably more complicated than it looks.
>
> Further suggestions welcome!
Many views/controls implement their own tracking loop within -mouseDown:, handling all the drag and mouse up events within that loop. Thus, the standard view methods are not called. So, to hook in when the split drag completes,just add your code to the end of -mouseDown: after the call to super.
This is explained in the documentation Kyle cited.
--Graham
_______________________________________________
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