Re: NSTextView without word wrap

2013-10-16 Thread Jens Alfke
On Oct 16, 2013, at 5:33 AM, Mark Wright wrote: > Shouldn't that be: > > - (BOOL) wrapsLines { > return ![self isHorizontallyResizable]; > } You’re right — I think I never noticed this bug because I never called the getter; I only added it so the compiler would let me declare wrapsLines as

Re: NSTextView without word wrap

2013-10-16 Thread Mark Wright
Shouldn't that be: - (BOOL) wrapsLines { return ![self isHorizontallyResizable]; } Otherwise if you set it to YES the getter will return NO because of the [self setHorizontallyResizable: !wraps] line in the setter? On 16 Oct 2013, at 06:55, Jens Alfke wrote: > > On Oct 12, 2013, at 2:4

Re: NSTextView without word wrap

2013-10-16 Thread Mikael Hakman
Works as advertised. Many thanks. /Mikael On Oct 16, 2013, at 7:55 AM, Jens Alfke wrote: > > On Oct 12, 2013, at 2:42 PM, Mikael Hakman wrote: > >> How can I make NSTextView not to do word wrap? Thanks. > > Basically you have to make the view’s text container infinitely wide. Here’s > an i

Re: NSTextView without word wrap

2013-10-15 Thread Jens Alfke
On Oct 12, 2013, at 2:42 PM, Mikael Hakman wrote: > How can I make NSTextView not to do word wrap? Thanks. Basically you have to make the view’s text container infinitely wide. Here’s an implementation of a .wrapsLines property that I used in a subclass of NSTextView a few years ago. - (BOOL

NSTextView without word wrap

2013-10-15 Thread Mikael Hakman
How can I make NSTextView not to do word wrap? Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubs

Re: NSTextView without word wrap?

2008-05-24 Thread Jonathan Dann
orText)]; [textView setHorizontallyResizable:YES]; [textView setVerticallyResizable:YES]; } On May 23, 2008, at 12:03 PM, Douglas Davidson wrote: On May 23, 2008, at 10:33 AM, David Carlisle wrote: I've spent the last few hours trying to create an NSTextView without word wrap. The BiS

Re: NSTextView without word wrap?

2008-05-23 Thread David Carlisle
NSMakeSize(LargeNumberForText, LargeNumberForText)]; [textView setHorizontallyResizable:YES]; [textView setVerticallyResizable:YES]; } On May 23, 2008, at 12:03 PM, Douglas Davidson wrote: On May 23, 2008, at 10:33 AM, David Carlisle wrote: I've spent the last few hours trying to create an NSTextView

Re: NSTextView without word wrap?

2008-05-23 Thread Jonathan Dann
, 2008, at 10:33 AM, David Carlisle wrote: 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. No help in that it doesn't do what you want, or no help in that you can'

Re: NSTextView without word wrap?

2008-05-23 Thread Douglas Davidson
On May 23, 2008, at 1:55 PM, David Carlisle wrote: I made some guesses at which statements to copy from BiScrollAspect.m and came up with the following awakeFromNib. I'm not sure which statements are the most relevant, and why, but it seems to do what I need. - (void) awakeFromNib {

Re: NSTextView without word wrap?

2008-05-23 Thread David Carlisle
create an NSTextView without word wrap. The BiScrollAspect.m file in the textSizingExample project file is no help at all. No help in that it doesn't do what you want, or no help in that you can't get it working in your app, or no help in some other way

Re: NSTextView without word wrap?

2008-05-23 Thread David Carlisle
n May 23, 2008, at 10:33 AM, David Carlisle wrote: 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. No help in that it doesn't do what you want, or no help in that you

Re: NSTextView without word wrap?

2008-05-23 Thread Douglas Davidson
On May 23, 2008, at 10:33 AM, David Carlisle wrote: 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. No help in that it doesn't do what you want, or no help i

NSTextView without word wrap?

2008-05-23 Thread David Carlisle
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 sear