• 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
Extending selection in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Extending selection in NSTextView


  • Subject: Extending selection in NSTextView
  • From: Charles Srstka <email@hidden>
  • Date: Wed, 23 Oct 2002 22:17:35 -0500

NSTableView has a method called selectRow:byExtendingSelection: so that you can override it and know whether the user is extending the selection or not.

Is there any way to do something similar to this in a NSTextView? What I want to do is override the selection method and be able to tell whether this is a brand new selection or an extension of the previous one. Unfortunately, all the methods I can see in NSTextView seem to specify an absolute range to set the selection to.

Any ideas?

Thanks,
Charles
_______________________________________________
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.

  • Prev by Date: Displaying License and RegistrationWindows before App Launches...
  • Next by Date: When I don't want NSLog() for normal use?
  • Previous by thread: Displaying License and RegistrationWindows before App Launches...
  • Next by thread: When I don't want NSLog() for normal use?
  • Index(es):
    • Date
    • Thread