I have just discovered that overriding enclosingScrollView and returning nil, doesn't let me longer see and edit the paragraph demiliters and tabs on the ruler view.
In facts, when the user is editing the textView, the page's scrolling view should display the paragraph delimiters and tabs on its ruler view. If I return nil from the textView's enclosingScrollView method, the pragraph's delimiters and tabs don't show up anymore. So, if I don't override the textView's enclosingScrollView method, when I resize the textView by dragging its handles, the page's scrollingView scrolls in an unexpected way. If I ovveride enclosingScrollView and return nil, I get no pragraph's delimiters and tabs. I'm puzzled. Any solution? Regards -- Leonardo > Da: Kyle Sluder <[email protected]> > Data: Wed, 25 Jun 2014 09:57:06 -0500 > A: Leonardo <[email protected]> > Cc: "[email protected]" <[email protected]> > Oggetto: Re: Unwanted enclosingScrollView > >> On Jun 25, 2014, at 9:50 AM, Leonardo <[email protected]> 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 protected]) 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 [email protected]
