简体   繁体   中英

Vertically expanding fieldEditor for an NSTextFieldCell

NSWindow s have a "field editor" associated with them, which is an NSText that appears in the same place as a NSTextField or NSTextFieldCell when the user focuses on the aforementioned control.

Field editors have the same size as the NSTextField or NSTextFieldCell . As the user enters more text, I'd need the field editor to expand.

Any tips on how to accomplish this?

You could take a look at IFVerticallyExpandingTextField . The code is a bit old (and so is your question), and not sure if it's still useable with the current API, but maybe it will get you started.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM