• 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
NSTextView without word wrap?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView without word wrap?


  • Subject: NSTextView without word wrap?
  • From: David Carlisle <email@hidden>
  • Date: Fri, 23 May 2008 11:33:50 -0600

I've spent the last few hours trying to create an NSTextView without word wrap. The BiScrollAspect.m file in the textSizingExample project file is no help at all. Searching on "wrap" is no help either. I've checked and unchecked various settings in IB. After much searching I settled on the following approach, which also doesn't work.

So where am I going wrong, and (optionally for documentation defenders) where in the documentation was I supposed to find the right answer?

- (void) awakeFromNib {
NSMutableParagraphStyle *style = [[theTextView defaultParagraphStyle] mutableCopy];
[style setLineBreakMode:NSLineBreakByClipping];
[theTextView setDefaultParagraphStyle:style];
[style release];
}
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: NSTextView without word wrap?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Contextual menu on an NSTableView
  • Next by Date: Accessing colours in NSColorPanel swatch
  • Previous by thread: Re: Contextual menu on an NSTableView
  • Next by thread: Re: NSTextView without word wrap?
  • Index(es):
    • Date
    • Thread