• 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: View Getting MouseUp Without Corresponding MouseDown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: View Getting MouseUp Without Corresponding MouseDown


  • Subject: Re: View Getting MouseUp Without Corresponding MouseDown
  • From: Rob Petrovec <email@hidden>
  • Date: Mon, 28 Apr 2008 21:26:38 -0700

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.

regards,

Peter


On 29/04/2008, at 1:43 PM, Graham Cox wrote:

Peter, could it be because of:

- (void)rulerView:(NSRulerView *)aRulerView handleMouseDown: (NSEvent *)theEvent;


??

G.



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?

NOTE: I have noticed that if I implement a (empty) MouseUp in my ruler view I don't get the message in my other view so its not really a problem - I just want to make sure nothing is 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

_______________________________________________

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


  • Follow-Ups:
    • Re: View Getting MouseUp Without Corresponding MouseDown
      • From: Peter Zegelin <email@hidden>
References: 
 >View Getting MouseUp Without Corresponding MouseDown (From: Peter Zegelin <email@hidden>)
 >Re: View Getting MouseUp Without Corresponding MouseDown (From: Graham Cox <email@hidden>)
 >Re: View Getting MouseUp Without Corresponding MouseDown (From: Peter Zegelin <email@hidden>)

  • Prev by Date: Deleting preference file from within the application
  • Next by Date: Re: Debugger at odds with reality? [SOLVED]
  • Previous by thread: Re: View Getting MouseUp Without Corresponding MouseDown
  • Next by thread: Re: View Getting MouseUp Without Corresponding MouseDown
  • Index(es):
    • Date
    • Thread