RE: scrolling NSTextView over NSImageView
RE: scrolling NSTextView over NSImageView
- Subject: RE: scrolling NSTextView over NSImageView
- From: "Nathan Herring" <email@hidden>
- Date: Wed, 12 Jul 2006 19:52:39 -0700
- Thread-topic: scrolling NSTextView over NSImageView
Thanks. I had not thought to look at NSScrollView's documentation to figure out what I thought was a problem endemic to the NSTextView. (As it were, I couldn't figure out why the thing was entirely black before finding some other post that said to turn off background drawing to the NSClipView.)
Now, as for NO vs. FALSE, is there some specific difference to which I need to adhere? I've been using them interchangeably in my code.
-nh
-----Original Message-----
From: cocoa-dev-bounces+nathanh=email@hidden [mailto:cocoa-dev-bounces+nathanh=email@hidden] On Behalf Of Andreas Mayer
Sent: Tuesday, July 11, 2006 6:30 PM
To: email@hidden
Subject: Re: scrolling NSTextView over NSImageView
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."
_______________________________________________
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