Re: Trouble with setWidthTracksTextView YES
Re: Trouble with setWidthTracksTextView YES
- Subject: Re: Trouble with setWidthTracksTextView YES
- From: Leonardo <email@hidden>
- Date: Fri, 27 Jun 2014 22:01:00 +0200
- Thread-topic: Trouble with setWidthTracksTextView YES
Hi, as Kyle suggested, that worked out.
Have you tried subclassing NSTextView and overriding -enclosingScrollView to
return nil?
Regards
-- Leonardo
> Da: Graham Cox <email@hidden>
> Data: Fri, 27 Jun 2014 15:52:53 +1000
> A: Leonardo <email@hidden>
> Cc: <email@hidden>
> Oggetto: Re: Trouble with setWidthTracksTextView YES
>
>
> On 25 Jun 2014, at 8:25 pm, Leonardo <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden