• 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: Brian Webster <email@hidden>
  • Date: Fri, 12 Jul 2002 13:53:58 -0500

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.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.

References: 
 >Re: NSTextField not scrolling (From: Paul Fox <email@hidden>)

  • Prev by Date: Weird problem with documents
  • Next by Date: Re: Weird problem with documents
  • Previous by thread: Re: NSTextField not scrolling
  • Next by thread: Re: NSTextField not scrolling
  • Index(es):
    • Date
    • Thread