I have a custom view in a .xib file that I use as a contentViewController for MAAttachedWindow . It has several NSTextField .
When I first open MAAttachedWindow , everything is fine. Text is displayed in all relevant text fields. Then, if I close the window (which sets it to nil ) and then call it again (which reinitializes using the same custom view as the contentViewController ), the last text field firstResponder now empty.
The strange thing is that if I click on the "empty" text box, it will display the correct text. This can be edited and behaved accordingly if this text field has focus. As soon as something becomes firstResponder , the text will disappear again.
Update
- The color change did not change the above behavior.
- The color of the text does not change at any time during this process.
- Bookmark text is also subject to the above behavior.
- No errors occur during this process.
- This does not happen with
NSSecureTextField s.
source share