Re: Typing with multiple selections in NSTextView

2018-10-03 Thread Uli Kusterer
On 20. Sep 2018, at 08:54, Georg Seifert wrote: > I wonder why it supports multiple selection in the first place, when you can > do almost nothing with it? The way I remember it being introduced at WWDC was not as "multiple selection" but rather as "column selection". That might make some of th

Re: Typing with multiple selections in NSTextView

2018-09-20 Thread Martin Wierschin
NSTextView's support for multiple selections isn't too bad. You can apply formatting to multiple selections out of the box, which is handy and probably the most obvious use case. Oh and you can copy multiple selections to the pasteboard all at once. But I understand your frustration. It can be

Re: Typing with multiple selections in NSTextView

2018-09-19 Thread Georg Seifert
Thanks for the explanation. I wonder why it supports multiple selection in the first place, when you can do almost nothing with it? Georg > On 19. Sep 2018, at 18:26, Martin Wierschin wrote: > > So far as I know this is not possible with a stock NSTextView. The selected > range array is aut

Re: Typing with multiple selections in NSTextView

2018-09-19 Thread Martin Wierschin
So far as I know this is not possible with a stock NSTextView. The selected range array is automatically normalized by NSTextView, to sort and coalesce ranges as needed. If any zero-length ranges are in a given selection array, only a single zero-length range is allowed and maintained by NSTextV

Typing with multiple selections in NSTextView

2018-09-19 Thread Georg Seifert
Hi Is it possible to make NSTextView to allow typing with multiple insertion points? One can set multiple selection and delete all of them at once. But typing only replaces the first range and ignores the other ranges. Thanks Georg ___ Cocoa-dev mai