Re: NSTextField not scrolling
Re: NSTextField not scrolling
- Subject: Re: NSTextField not scrolling
- From: Paul Fox <email@hidden>
- Date: Fri, 12 Jul 2002 20:14:14 +0100
>
On Friday, July 12, 2002, at 12:36 PM, Paul Fox wrote:
>
>
>
>
>> On Friday, July 12, 2002, at 12:01 PM, cocoa-dev-
>
>> 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?
>
>>
>
>> Look in the inspector in Interface Builder and make sure that
>
>> under Layout, you've got "Scrollable" checked and not "Wraps".
>
>
>
> Thanks Brian. I'm not using the IB, so what method should I be looking
>
> for. The closest I have come is NSParagraphStyle and NSSimpleTypesetter
>
> but it is not clear from the docs how these related to an NSTextField
>
> object.
>
>
The method you're looking for is -[NSCell setScrollable:]. Just
>
call it on the NSTextField's cell and you should be set.
Beautiful! That is the baby I was looking for - searched everywhere but
forget to descend into the depths of the superclasses.
Thanks!
_______________________________________________
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.