Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo

2016-04-26 Thread Graham Cox
> On 27 Apr 2016, at 9:29 AM, Graham Cox wrote: > > [[theTextView textContainer] setContainerSize:NSMakeSize(contentSize.width, > FLT_MAX)]; Oops, that should be: [[theTextView textContainer] setContainerSize:NSMakeSize(FLT_MAX, contentSize.height)]; G. __

Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo

2016-04-26 Thread Graham Cox
> On 26 Apr 2016, at 8:25 PM, Dave wrote: > > maybe its just impossible using an NSScrollView/NSTextView. In fact, since > there isn’t a handy-dandy method or property on any of the classes in > question to just do it, I’m beginning to think that’s the case. [[theTextView textContainer] se

Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo

2016-04-26 Thread Dave
Hi, I did do quite a few searches but I didn’t find that - I’m not that good at formulating the correct search string, I think was trying things like "NSScrollView Truncate Text”. Anyway, I managed to piece together something that would and I created a Category method on NSScrollView so I will

Custom-vs-modal presentation?

2016-04-26 Thread Rick Mann
I have a custom UI view controller presentation using UIPresentationController and UIViewControllerTransitioningDelegate. But I'm wondering how best to do this only on iPad and iPhone 6 plus, and to use a regular modal presentation on other iPhones. Is that even an appropriate desire? Basically

Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo

2016-04-26 Thread Gary L. Wade
Did you try doing an internet search? This search phrase in Google has a number of people asking the same thing with many variations on the same answer: how to prevent nstextview from wrapping

Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo

2016-04-26 Thread Dave
Hi, I’ve tried loads of different way of doing it but none of them work. Maybe its because I’m not using Auto-Layout, maybe its just impossible using an NSScrollView/NSTextView. In fact, since there isn’t a handy-dandy method or property on any of the classes in question to just do it, I’m begi

Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo

2016-04-26 Thread Bill Cheeseman
Graham Cox is right. I realized overnight that I was misinterpreting your question. I happen to be working on truncation of text myself, and I was focused on the usual meaning of "truncation" in the attributed string context. It means placing three periods at the end or in the middle of truncat