Re: NSTextView scrolling
Re: NSTextView scrolling
- Subject: Re: NSTextView scrolling
- From: Nicholas Shanks <email@hidden>
- Date: Mon, 11 Feb 2002 20:42:05 +0000
Further to this, removing myself from the notification center at the start
of the method and restoring things at the end causes no problems. All code
functions correctly. I'm lead to believe -[NSView
setPostsBoundsChangedNotifications:] is unimplemented!
I will report to radarweb.
On Monday, February 11, 2002, at 08:24 pm, I wrote:
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.