On Oct 24, 2013, at 2:17 PM, Dmitriy Balakirev wrote:

> Can someone explain what the reason behind this NSTextView (i. e. every field 
> editor) behavior:
> If we type something in text field('test', for example) and then select all, 
> copy, and finally past several times, we get 'testtesttest'.
> But if we instead do double click on text (selecting word 'test'), copy and 
> then past, we will get 'test test test'. What reason adding spaces here?
> And if we want past 'test' inside "test" we will get "te test st" but not 
> "tetestst". Weird...

I think that's a function of "samrt insert and delete"--look up the 
smartInsertDeleteEnabled method of NSTextView.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to