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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to