Re: Changing the background of a NSScrollView
Re: Changing the background of a NSScrollView
- Subject: Re: Changing the background of a NSScrollView
- From: Quincey Morris <email@hidden>
- Date: Sun, 19 Jul 2009 13:27:52 -0700
On Jul 19, 2009, at 12:43, Richard Bannister wrote:
I'm trying to draw into the background of a NSScrollView -
specifically I have custom content I want to fill up the space with
other than a solid colo(u)r.
I'm slightly at a loss as to how to do this. Has anyone solved this
problem already?
I'd guess the easiest way would be to make the scroll view a subview
of your custom view that draws the required "background" content, and
set the scroll view not to draw its own background
(setDrawsBackground:).
You'd likely also set your custom view's autoresizing flags to
whatever you currently have for the scroll view, and set the scroll
view to autoresize to match its enclosing custom view.
All of that can be done in IB, once you've written your custom view
class.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden