Re: NSTextField not scrolling
Re: NSTextField not scrolling
- Subject: Re: NSTextField not scrolling
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 12 Jul 2002 13:39:15 -0400
on 02-07-12 7:52 AM, Paul Fox at email@hidden wrote:
>
I have an NSTextField in my app. When I type text into the field,
>
it works fine, except that the text doesnt sideways scroll as I reach the
>
right hand side of the field.
>
>
Am I using the correct object? Is there some method I should be
>
setting to enable the scrolling? Any clues?
There's a radio button cluster in IB's NSTextField Info Panel to control
this, called "Layout." Your choices are "Scrollable" or "Wraps." You want
Scrollable. The method you call to control this programmatically is NSCell's
setScrollable:. From the NSCell class reference document:
"- (void)setScrollable:(BOOL)flag
"Sets whether excess text in the receiver is scrolled past the cell's
bounds. If flag is YES, wrapping is turned off. When the scrollable
attribute is turned on, the alignment of text in the cell is changed to left
alignment."
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.