Re: Vertically-expanding NSTextField
Re: Vertically-expanding NSTextField
- Subject: Re: Vertically-expanding NSTextField
- From: Andrew Bowman <email@hidden>
- Date: Thu, 11 May 2006 09:33:06 -0700
On May 11, 2006, at 3:38 AM, Uli Kusterer wrote:
Am 11.05.2006 um 08:25 schrieb Andrew Bowman:
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.
What system version are you deploying to? There are various
oddities with OS X where e.g. on 10.2 sizeToFit would somehow make
the text view to small... you'll definitely need to test this on
all targeted systems.
My deployment target is for 10.4. This app is for my senior project,
so I'm not worrying about running this on anything below 10.3. I've
tried throwing in a sizeToFit call in my textDidChange method, and it
is making my textfield jump to a lower position in the window with
very small width. No autosizing of any kind is occurring either.
- 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