Hi, as Kyle suggested, that worked out.

Have you tried subclassing NSTextView and overriding -enclosingScrollView to
return nil?


Regards
-- Leonardo


> Da: Graham Cox <graham....@bigpond.com>
> Data: Fri, 27 Jun 2014 15:52:53 +1000
> A: Leonardo <mac.iphone....@gmail.com>
> Cc: <cocoa-dev@lists.apple.com>
> Oggetto: Re: Trouble with setWidthTracksTextView YES
> 
> 
> On 25 Jun 2014, at 8:25 pm, Leonardo <mac.iphone....@gmail.com> wrote:
> 
>> How to avoid this loop? Any idea?
>> 
> 
> 
> Have you tried -setVerticallyResizable:NO and -setHorizontallyResizable:NO on
> the text view? If the container tracks the view, these should be NO, if the
> container doesn't track the view, these should be YES. In the past having both
> YES would create an infinite loop. It might be that these days it no longer
> hangs, but nevertheless you should only have one or the other.
> 
> --Graham
> 
> 


_______________________________________________

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