Re: Detecting MouseUp in NSSplitview

2010-12-30 Thread Peter Zegelin
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 hand

Re: Detecting MouseUp in NSSplitview

2010-12-30 Thread Graham Cox
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 w

Re: Detecting MouseUp in NSSplitview

2010-12-30 Thread Peter Zegelin
A bit cryptic but I still can't get it to work. I implemented: - (BOOL)acceptsFirstResponder{ return YES; } - (void)mouseDown:(NSEvent *)theEvent{ } - (void)mouseUp:(NSEvent *)theEvent{ } and my mouseUp *does* get called. However the divider doesn't move. So I added [super mouseDown:

Re: Detecting MouseUp in NSSplitview

2010-12-29 Thread Kyle Sluder
On Wed, Dec 29, 2010 at 9:30 PM, Peter Zegelin wrote: > I would like to detect when a user has finished dragging on a splitview > divider but unfortunately just adding: > > - (void)mouseUp:(NSEvent *)theEvent{ >        [super mouseUp:theEvent]; > } > > to my NSSplitview subclass doesn't seem to w

Detecting MouseUp in NSSplitview

2010-12-29 Thread Peter Zegelin
I would like to detect when a user has finished dragging on a splitview divider but unfortunately just adding: - (void)mouseUp:(NSEvent *)theEvent{ [super mouseUp:theEvent]; } to my NSSplitview subclass doesn't seem to work as it never gets called. I get the mouseDown event but not the