• 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: no mouseUp if mouseDown not overridden?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no mouseUp if mouseDown not overridden?


  • Subject: Re: no mouseUp if mouseDown not overridden?
  • From: Stéphane Sudre <email@hidden>
  • Date: Mon, 22 Aug 2005 21:29:15 +0200


On lundi, août 22, 2005, at 09:15 PM, Luc Vandal wrote:

Hi,

how come I can't get the mouseUp event if I don't handle mouseDown in a NSTextView? If I do handle mouseDown and use [super mouseDown:] then I'll never get the mouseUp event but if I just have an empty mouseDown then I'll get the mouseUp event.

I don't need to do anything with the mouseDown, all I want to use is mouseUp to get the selection. I can't see myself re-implementing mouseDown just so I can use mouseUp!

Is there a workaround?

Why not just use the notification:

- (void)textViewDidChangeSelection:(NSNotification *)aNotification;

?


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: no mouseUp if mouseDown not overridden?
      • From: Luc Vandal <email@hidden>
References: 
 >no mouseUp if mouseDown not overridden? (From: Luc Vandal <email@hidden>)

  • Prev by Date: no mouseUp if mouseDown not overridden?
  • Next by Date: change window origin before show
  • Previous by thread: no mouseUp if mouseDown not overridden?
  • Next by thread: Re: no mouseUp if mouseDown not overridden?
  • Index(es):
    • Date
    • Thread