Formatter coloration issues when focused or not (macOS)
Closed this issue · 2 comments
Note, this might be my own user error here, but this is what I see. The formatter when a field editor is present in the field doesn't show errors, they only show when the field isn't the first responder:
Other ideas:
I'd love to have the formatter select the component that has an error assuming there is just one.
arrow or tab between components:
Double click works fine on each component.
I wasn't able to get your Timecode.TextField to work properly, but I am setting your formatter on a NSTextField. Timecode.TextField can't be seen in interface builder for some reason, though you can typealias it to a single object and it will show. I was getting a crash with your textfield object because it is setting a first responder, but it gets confused if the field is in an NSPopover sometimes...
The formatter when a field editor is present in the field doesn't show errors, they only show when the field isn't the first responder
Currently this is actually intentional behavior, as the formatter allows for loosely formatted user input until the user accepts it (presses Enter or the field loses focus). This is an optimal behavior for using the formatter in a TableView context, for example.
However this is certainly an area that can be improved in future by providing additional variants of the formatter with a variety of behaviors depending on context. As we discussed before, a formatter specifically for UI timecode input that mimics the behavior of timecode fields in DAWs such as Logic Pro, Cubase, Pro Tools etc. is something that is a little more ambitious but would be great to add.
Deferring this to a future date when I can write additional formatters for specific contexts.