• 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: Right-click in NSTextView selects adjacent word?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Right-click in NSTextView selects adjacent word?


  • Subject: Re: Right-click in NSTextView selects adjacent word?
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 12 Apr 2005 14:35:15 -0700


On Apr 12, 2005, at 1:58 PM, Glen Simmons wrote:

Why does right-clicking in an NSTextView select the word at or next to the click point and how do I make it stop? How are you supposed to copy and paste via the contextual menu if you can't paste without replacing a word?? Is this behavior supposed to be helpful in some way? Why wouldn't they assume that if I wanted the word selected I would just select it? To see this behavior in action, launch TextEdit and try to copy a word and paste it into the middle of another via the contextual menu. Can't do it.



It does so because most of the contextual menu items are designed to operate on words or larger selections in the text.  Conceptually, the contextual menu is designed to operate on the item clicked on, where the notion of item depends on the context; and the default item in the context of a text view is a word.  However, if you click on or near an existing selection--even an zero-length one--then that selection will be what is operated on.  So to paste without replacing, you can click once to create an insertion point, then control- or right-click on that insertion point.  Alternatively, you can drag and drop, use cmd-V, etc., etc.  

Douglas Davidson

 _______________________________________________
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: Right-click in NSTextView selects adjacent word?
      • From: Glen Simmons <email@hidden>
References: 
 >Right-click in NSTextView selects adjacent word? (From: Glen Simmons <email@hidden>)

  • Prev by Date: Re: views within views?
  • Next by Date: Re: views within views?
  • Previous by thread: Right-click in NSTextView selects adjacent word?
  • Next by thread: Re: Right-click in NSTextView selects adjacent word?
  • Index(es):
    • Date
    • Thread