Re: Vertically-expanding NSTextField
Re: Vertically-expanding NSTextField
- Subject: Re: Vertically-expanding NSTextField
- From: Brian Ganninger <email@hidden>
- Date: Thu, 11 May 2006 15:24:48 -0500
Although the codebase isn't exactly small or quick to sort through,
Adium (http://www.adiumx.com) has such a textfield and is open
source, so you can fully peruse the code that makes this happen.
On May 11, 2006, at 1:25 AM, Andrew Bowman wrote:
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:
40mac.com
This email sent to email@hidden
_______________________________________________
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