• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trouble with setWidthTracksTextView YES
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Trouble with setWidthTracksTextView YES (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Trouble with setWidthTracksTextView YES
  • Next by Date: MyShadow was deallocated while key value observers...
  • Previous by thread: Re: Trouble with setWidthTracksTextView YES
  • Next by thread: Offsetting content of NSTable/NSOutlineView
  • Index(es):
    • Date
    • Thread