• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting MouseUp in NSSplitview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Detecting MouseUp in NSSplitview (From: Peter Zegelin <email@hidden>)
 >Re: Detecting MouseUp in NSSplitview (From: Kyle Sluder <email@hidden>)
 >Re: Detecting MouseUp in NSSplitview (From: Peter Zegelin <email@hidden>)
 >Re: Detecting MouseUp in NSSplitview (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: track files even if moved
  • Next by Date: how do I put a subview in a superview with color
  • Previous by thread: Re: Detecting MouseUp in NSSplitview
  • Next by thread: track files even if moved
  • Index(es):
    • Date
    • Thread