Vertically-expanding NSTextField
Vertically-expanding NSTextField
- Subject: Vertically-expanding NSTextField
- From: Andrew Bowman <email@hidden>
- Date: Wed, 10 May 2006 23:25:23 -0700
Hey all,
The best example of what I'm after is the text field in iChat windows
(thus advice from iChat developers at Apple would be more than
welcome). Word wrapping occurs automatically, and the height of the
text field expands or contracts as needed while type or when the
window is resized.
I'd like to get the appropriate code to fit nicely into a method
which can be called from the textDidChange and viewDidEndLiveResize
methods of an NSTextField subclass. I'd like to avoid using a scroll
view if possible.
Aspects of this topic have been covered previously on cocoa-dev and
at cocoadev.com, but I've never been able to get any of the solutions
to work properly. Suggestions, tested code snippets, and your
patience are all appreciated.
Cheers,
Andrew Bowman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden