It worked... So simple....
I should be out of order. Too much work.
Thank you. Thank you. Thank you.


Regards
-- Leonardo


> Da: Kyle Sluder <k...@ksluder.com>
> Data: Wed, 25 Jun 2014 09:57:06 -0500
> A: Leonardo <mac.iphone....@gmail.com>
> Cc: "cocoa-dev@lists.apple.com" <cocoa-dev@lists.apple.com>
> Oggetto: Re: Unwanted enclosingScrollView
> 
>> On Jun 25, 2014, at 9:50 AM, Leonardo <mac.iphone....@gmail.com> 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 (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