• 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: NSTextView odd behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView odd behaviour


  • Subject: Re: NSTextView odd behaviour
  • From: Satoshi Matsumoto <email@hidden>
  • Date: Tue, 26 Jul 2005 15:27:24 +0900

on 05.7.26 2:59 PM, Duncan Campbell at email@hidden wrote:
> In a plain old NSTextView, double-click on a word to highlight it,
> apple+c to copy and then paste it inbetween some letters in another
> word - a leading space is added to the copied text.
>
> This does not happen if you select a word using the keyboard or mouse
> - it only happens on a double-click select.

You can control it with the NSTextView method below

- (void)setSmartInsertDeleteEnabled:(BOOL)flag

Controls whether the receiver inserts or deletes space around selected words
so as to preserve proper spacing and punctuation. If flag is YES it does; if
flag is NO it inserts and deletes exactly what’s selected.

Satoshi

-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802


 _______________________________________________
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: 
 >NSTextView odd behaviour (From: Duncan Campbell <email@hidden>)

  • Prev by Date: NSTextView odd behaviour
  • Next by Date: Re: multi-character character constant and CFString
  • Previous by thread: NSTextView odd behaviour
  • Next by thread: email processing on Mac OS X.
  • Index(es):
    • Date
    • Thread