Re: Resize NSTextField to specific values
Re: Resize NSTextField to specific values
- Subject: Re: Resize NSTextField to specific values
- From: Leon Starr <email@hidden>
- Date: Wed, 20 Jun 2007 16:24:58 -0700
I was looking hard, but apparently not effectively. Thanks for the
additional
resources (intimidating as some of them are!). For the sake of
future googlers,
here's the response that worked:
NSRect frame = [textField frame] ;
frame.size.width = newSize.width ;
frame.size.height = newSize.height ;
[textField setFrame:frame] ;
[textField setNeedsDisplay:YES];
On Jun 20, 2007, at 3:28 PM, I. Savant wrote:
On Jun 20, 2007, at 5:03 PM, Leon Starr wrote:
I've found lots of past questions on this topic, but no clear,
definitive answer.
Then you weren't looking very hard ...
http://www.cocoabuilder.com/search/archive/cocoa?words=automatic
+resizing+nstextfield&limit=10&sort=RPD&mode=1&ul=__B&wf=1111&page=2
http://www.google.com/search?hl=en&q=site:www.cocoadev.com
+resizing+NSTextField&btnG=Search
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden