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
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
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:
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
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