Re: Field editors behavior.
Re: Field editors behavior.
- Subject: Re: Field editors behavior.
- From: Keary Suska <email@hidden>
- Date: Thu, 24 Oct 2013 14:35:45 -0600
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 (email@hidden)
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:
This email sent to email@hidden