Re: Detecting MouseUp in NSSplitview
Re: Detecting MouseUp in NSSplitview
- Subject: Re: Detecting MouseUp in NSSplitview
- From: Peter Zegelin <email@hidden>
- Date: Fri, 31 Dec 2010 05:57:36 +1100
Thanks Graham,
Now I get it. Works great.
On 30/12/2010, at 10:39 PM, Graham Cox wrote:
>
> 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
>
>
kind regards,
Peter Zegelin
http://www.fracturedsoftware.com
_______________________________________________
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