• 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: Luc Vandal <email@hidden>
  • Date: Mon, 22 Aug 2005 16:48:44 -0400

Sounds good, but how can I tell if the selection was made but the user and not with setSelectRange?

Thanks!

Luc


On 22-Aug-05, at 3:29 PM, Stéphane Sudre wrote:


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
References: 
 >Re: no mouseUp if mouseDown not overridden? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: Command line parameters...
  • Next by Date: How do I insert a function or class call into the main event loop?
  • Previous by thread: Re: no mouseUp if mouseDown not overridden?
  • Next by thread: Re: no mouseUp if mouseDown not overridden?
  • Index(es):
    • Date
    • Thread