Conversation
wokalski
left a comment
There was a problem hiding this comment.
Good job! I left some comments to give you pointers.
| }, | ||
| configureInstance: (~isFirstRender as _, {view} as node) => { | ||
| style | ||
| |> List.iter(attribute => |
There was a problem hiding this comment.
just FYI - this doesn't do any magic. In this case the iter does nothing.
There was a problem hiding this comment.
Good to know, thanks. 😅
I have so many errors being thrown regarding BriskTextInput.c, I feel like once I get that ironed out I'll have a better way of understanding and implementing the component part.
| @end | ||
|
|
||
| NSTextInputContext *ml_BriskTextInput_make() { | ||
| BriskTextInput *input = [BriskTextInput new]; |
There was a problem hiding this comment.
so ml_BriskTextInput_make should return a view (Like NSTextField or editable NSTextView.) NSTextInputContext is just a protocol (think java interface, functor signature (kinda)) related to text input.
There was a problem hiding this comment.
So NSTextInputContext is actually a class and NSTextInputClient is a protocol. Should ml_BriskTextInput_make then return a NSTextField or NSTextView conforming to NSTextInputClient protocol?
|
@wokalski thank you for the pointers!! 🙏 |
|
I tried implementing NSTextInputClient, but was blocked due to my unfamiliarity with Objective-C. I was getting a huge list of errors. It was pretty overwhelming to try and get everything to compile. I am trying a different approach. I borrowed a lot of code from |
Work In Progress.
onChangeplaceholder