Re: Allow font changes in edited text field
Christiaan Hofman <[email protected]> Fri, 17 Sep 2010 16:59:56 +0200
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
The problem with that approach is that it requires a custom field editor and hooks to use it, which also are not in the view where I want to support it, and moreover the text field cell changes those values when it sets up the field editor. Christiaan Christiaan On Sep 17, 2010, at 14:52, Andy Lee wrote: > Just a guess offhand -- use a custom field editor with richText==NO and allowsFontPanel==YES? Perhaps there is a simpler way. > > --Andy > > On Sep 17, 2010, at 8:25 AM, Christiaan Hofman wrote: > >> How can I make a text field that allows changing the overall font during edits? I do not want to support rich text, only the overall font should be able to change, basically what you get in NSTextView when richText==NO and allowsFontPanel==YES. Therefore setting allowsEditingTextAttributes to YES does not do what I want, because that sets richText to YES on the field editor. >> >> Thanks, >> Christiaan