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

Re: scrolling NSTextView over NSImageView


  • Subject: Re: scrolling NSTextView over NSImageView
  • From: Andreas Mayer <email@hidden>
  • Date: Wed, 12 Jul 2006 03:29:41 +0200


Am 12.07.2006 um 01:31 Uhr schrieb Nathan Herring:

I have an NSTextView where I've programmatically setDrawsBackground:FALSE on both itself and its NSClipView superview.

Instead of sending setDrawsBackground:NO (not FALSE) to the clip view, send it to the scroll view.


From the documentation:

"If your NSScrollView encloses an NSClipView sending a setDrawsBackground: message with a parameter of NO to the NSScrollView has the added effect of sending the NSClipView a setCopiesOnScroll: message with a parameter of NO. The side effect of sending the setDrawsBackground: message directly to the NSClipView instead would be the appearance of “trails” (vestiges of previous drawing) in the document view as it is scrolled."


Andreas _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • RE: scrolling NSTextView over NSImageView
      • From: "Nathan Herring" <email@hidden>
    • Re: scrolling NSTextView over NSImageView
      • From: Scott Anguish <email@hidden>
References: 
 >scrolling NSTextView over NSImageView (From: "Nathan Herring" <email@hidden>)

  • Prev by Date: Replacing "Cannot open document" dialog in 10.3.
  • Next by Date: drawing arrows
  • Previous by thread: scrolling NSTextView over NSImageView
  • Next by thread: Re: scrolling NSTextView over NSImageView
  • Index(es):
    • Date
    • Thread