Re: NSTextField & sizeToFit
Re: NSTextField & sizeToFit
- Subject: Re: NSTextField & sizeToFit
- From: Russell Ahrens <email@hidden>
- Date: Sun, 10 Jun 2001 18:34:04 -0400
I haven't tried it, but the documentation for sizeToFit: in NSControl
says, "This method neither redisplays the receiver, nor marks it as
needing display. You must do this yourself with either display or
setNeedsDisplay."
Have you tried that?
Russell Ahrens
Oink Industries
On Saturday, June 9, 2001, at 11:52 PM, Andre Lipinski wrote:
>
Hello,
>
>
I am trying to have an NSTextField change size as the user changes its
>
contents, much like the finder. I've tried a bunch of things in
>
controlTextDidChange: like [field sizeToFit] and a bunch of methods
>
from NSCell. I cannot find a way to make it work. The best I can get is
>
nowhere good enough. After an hour+ of trying, I must move on.
>
>
Do you know how to do this? Please tell!
>
>
Thank you kindly for your time,
>
Andre
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev