Re: NSTextView odd behaviour
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