• 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: Unwanted enclosingScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unwanted enclosingScrollView


  • Subject: Re: Unwanted enclosingScrollView
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 25 Jun 2014 09:57:06 -0500

> On Jun 25, 2014, at 9:50 AM, Leonardo <email@hidden> wrote:
>
> I have a page which is an NSView within a NSScrollView.
> I put a NSTextView just within the page, without its scrollView.
>
> NSScrollView (page's scrollView)
>     NSClipView
>          NSView (documentView - my page)
>               NSTextView (my textView Box)
>
> So I have just discovered that the [textView enclosingScrollView] *becames*
> the page's scrollView. Thus, when I resize the textView, its
> enclosingScrollView gets scrolled to the origin. And my page scrolls
> inopportunely.
>
> How to get rid of this behavior?

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

--Kyle Sluder

_______________________________________________

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


  • Follow-Ups:
    • Re: Unwanted enclosingScrollView
      • From: Leonardo <email@hidden>
References: 
 >Unwanted enclosingScrollView (From: Leonardo <email@hidden>)

  • Prev by Date: Unwanted enclosingScrollView
  • Next by Date: Re: Unwanted enclosingScrollView
  • Previous by thread: Unwanted enclosingScrollView
  • Next by thread: Re: Unwanted enclosingScrollView
  • Index(es):
    • Date
    • Thread