• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextField not scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Weird problem with documents
  • Next by Date: How to track down "free'd" objects
  • Previous by thread: Re: NSTextField not scrolling
  • Next by thread: OmniGraffle & ProjectBuilder
  • Index(es):
    • Date
    • Thread