NSTextView without word wrap?
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