Re: NSTextView scrolling
Re: NSTextView scrolling
- Subject: Re: NSTextView scrolling
- From: Nicholas Shanks <email@hidden>
- Date: Mon, 11 Feb 2002 20:24:18 +0000
I'm listening out for NSViewBoundsDidChange notifications (sent upon
scrolling) which are registered on an NSClipView object such:
[[someNSTextView enclosingScrollView] contentView].
I have this psudocode handling the notification:
NSClipView *object = [notification object];
NSClipView *aClipView = [[someOtherNSTextView enclosingScrollView]
contentView];
[aClipView setPostsBoundsChangedNotifications:NO];
[aClipView setBoundsOrigin:[object bounds].origin];
[aClipView setPostsBoundsChangedNotifications:YES];
The problem lies in that aClipView still sends out
NSViewBoundsDidChangeNotifications even though it's been told not to. This
is causing my function to be called recusivly. Is it a known bug?
Nicholas Shanks
--
http://nickshanks.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.