Brilliant! Just what I wanted - did the trick wonderfully, thanks again, I 
would never have thought to look in the Size Panel. BTW, the code is needed, 
e.g. 

self.pDetailTextView.textContainer.containerSize = NSMakeSize(FLT_MAX, FLT_MAX);
self.pDetailTextView.textContainer.widthTracksTextView = NO;

All the Best
Dave

> On 8 Sep 2015, at 16:17, Ken Thomases <k...@codeweavers.com> wrote:
> 
> On Sep 8, 2015, at 9:22 AM, Dave <d...@looktowindward.com> wrote:
> 
>> I’ve got an NSTextView that’s working in that it Scrolls ok vertically, but 
>> If I have a long line, it wraps instead of clipping the line and allowing 
>> Horizontal Scrolling. I’ve looked at the properties of the ScrollView and 
>> the underlying TextView but I can see no option to have it truncate lines, 
>> whereas AFAIR, this option is present in a NSTextField. I’ve got Show H 
>> Scroller, Show V Scroller and Automatically Hide Scroller all set to ON.
> 
> On the Size inspector for the text view, check Resizable: Horizontally.  
> Also, set the maximum width to a very big number.
> 
> I expect that this also sets the text view's text container to not track its 
> view's width.  If it doesn't, then you may have to do that in code:
> 
> theTextView.textContainer.containerSize = NSMakeSize(FLT_MAX, FLT_MAX);
> theTextView.textContainer.widthTracksTextView = NO;
> 
> Regards,
> Ken
> 


_______________________________________________

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/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to