• 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: Scott Anguish <email@hidden>
  • Date: Wed, 12 Jul 2006 00:37:12 -0400


On Jul 11, 2006, at 9:29 PM, Andreas Mayer wrote:


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."

it is also important to note that Views really don't work well overlapping. They're not intended too.




_______________________________________________
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


References: 
 >scrolling NSTextView over NSImageView (From: "Nathan Herring" <email@hidden>)
 >Re: scrolling NSTextView over NSImageView (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: How to use NSPrintHeaderAndFooter
  • Next by Date: Re: How to use NSPrintHeaderAndFooter
  • Previous by thread: Re: scrolling NSTextView over NSImageView
  • Next by thread: RE: scrolling NSTextView over NSImageView
  • Index(es):
    • Date
    • Thread