• 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
clickCount question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

clickCount question


  • Subject: clickCount question
  • From: Koen van der Drift <email@hidden>
  • Date: Sat, 19 Jul 2003 23:35:58 -0400

Hi,

I use a NSTextView delegate (a window controller) to detect a change in the selection of the text. When the selection changes the controller updates another item in the window, that indicates the number of characters in the selection. Now what happens is that when the user doubleclicks in the text, the delegate gets two textViewDidChangeSelection notifications. So the text that displays the number of selected characters changes from the old value to zero to the new value. This doesn't look very nice, so I want to make sure that the item only changes when a double-click occured. How can I change MyTextView so the notification is sent unless a single click took place? Or can textViewDidChangeSelection figure out how many clicks occured?

I only found clickCount from NSEvent - is there a way to get the event in either solutions?

thanks,

- Koen.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: clickCount question
      • From: Julien Jalon <email@hidden>
  • Prev by Date: Re: Trouble installing Panther - Networking doesn't work
  • Next by Date: Implementing Safari-like tabs
  • Previous by thread: TextField
  • Next by thread: Re: clickCount question
  • Index(es):
    • Date
    • Thread