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

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.

References: 
 >Re: NSTextView scrolling (From: Nicholas Shanks <email@hidden>)

  • Prev by Date: Re: loginWindow replacement
  • Next by Date: NSWindow: initWithWindowRef
  • Previous by thread: Re: NSTextView scrolling
  • Next by thread: NSWindow: initWithWindowRef
  • Index(es):
    • Date
    • Thread