Now I need to trace it onto real pattern paper.
Now I need to trace it onto real pattern paper.
The user can even copy text from a selection that spans multiple text views.
The user can even copy text from a selection that spans multiple text views.
I need this functionality for my block-based notes app, where each block lives inside its own text view. #dev
GitHub repository:
github.com/indragiek/IN...
GitHub repository:
github.com/indragiek/IN...
The problem with having separate and independent text views is that selecting text across multiple `NSTextView`s is not natively supported.
The problem with having separate and independent text views is that selecting text across multiple `NSTextView`s is not natively supported.
My idea was to have a separate text view for each block type.
For example, a heading block would have its own text view.
Likewise, a normal paragraph block would also have its own text view.
My idea was to have a separate text view for each block type.
For example, a heading block would have its own text view.
Likewise, a normal paragraph block would also have its own text view.
danielsaidi.com/blog/2022/06...
If you're new to #AppKit and need to build something that requires using text views, I'd recommend giving it a read.
danielsaidi.com/blog/2022/06...
If you're new to #AppKit and need to build something that requires using text views, I'd recommend giving it a read.
github.com/indragiek/IN...
It's old and uses Objective-C, but Sonnet 4.5 should be able to help port it to Swift.
github.com/indragiek/IN...
It's old and uses Objective-C, but Sonnet 4.5 should be able to help port it to Swift.
This caused a problem where I was unable to perform text selection across multiple blocks, since the blocks were in separate `NSTextView`'s.
This caused a problem where I was unable to perform text selection across multiple blocks, since the blocks were in separate `NSTextView`'s.