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 j...@mooseyard.com wrote: On Oct 12, 2013, at 2:42 PM, Mikael Hakman mhak...@dkab.net wrote: How can I make NSTextView not to do word wrap? Thanks. Basically you have to make the view’s text container

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:42

Re: NSTextView without word wrap

2013-10-16 Thread Jens Alfke
On Oct 16, 2013, at 5:33 AM, Mark Wright blue.bucon...@virgin.net 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

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

Re: NSTextView without word wrap

2013-10-15 Thread Jens Alfke
On Oct 12, 2013, at 2:42 PM, Mikael Hakman mhak...@dkab.net 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

Re: NSTextView without word wrap?

2008-05-24 Thread Jonathan Dann
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 BiScrollAspect.m file

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 searching I settled

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 in that you

Re: NSTextView without word wrap?

2008-05-23 Thread David Carlisle
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? Douglas Davidson

Re: NSTextView without word wrap?

2008-05-23 Thread David Carlisle
(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 without word