Re: View Getting MouseUp Without Corresponding MouseDown
Re: View Getting MouseUp Without Corresponding MouseDown
- Subject: Re: View Getting MouseUp Without Corresponding MouseDown
- From: Peter Zegelin <email@hidden>
- Date: Wed, 30 Apr 2008 10:50:24 +1000
Thanks for that - makes sense I guess!
Peter
On 29/04/2008, at 2:26 PM, Rob Petrovec wrote:
FYI, same thing happens in Carbon. Its technically a feature for
Drag support.
--Rob
On Apr 28, 2008, at 8:51 PM, Peter Zegelin wrote:
Hi Graham,
I don't think so as they are my own rulers - I'm not using
NSRulerView. I wasn't even going to mention the rulers! They are
just custom sibling views. It's just weird that I can mousedown in
one sibling and get a mouseup in another if the mouse happens to be
over it on release. This doesn't happen if the views are completely
separate ( I don't think so anyway).
This maybe just my misunderstanding of the way the view hierarchy
works.
On 29/04/2008, at 1:43 PM, Graham Cox wrote:
Peter, could it be because of:
- (void)rulerView:(NSRulerView *)aRulerView handleMouseDown:
(NSEvent *)theEvent;
On 29 Apr 2008, at 12:05 pm, Peter Zegelin wrote:
I have a view that creates a 'Tool' on MouseDown and then
releases it on MouseUp. This view also has siblings (my own
rulers) that are hidden and shown under user control. When the
rulers are shown the tool creating view gets shifted to
accommodate the ruler views.
I have noticed that when the rulers are on I can get a MouseDrag
and MouseUp event in my tool view if I MouseDown in the rulers
and then drag and release in the other view. Is this normal or am
I doing something wrong?
_______________________________________________
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