Re: Aesthetics of NSScrollView
Re: Aesthetics of NSScrollView
- Subject: Re: Aesthetics of NSScrollView
- From: Ryan Dingman <email@hidden>
- Date: Mon, 7 Oct 2002 13:57:34 -0700
[scrollView setDrawsBackground:YES];
[scrollView setBackgroundColor:[NSColor whiteColor]];
Hope this helps.
ryan
On Monday, October 7, 2002, at 12:00 PM, Drew McCormack wrote:
I have a custom NSView that I have as the document view of an
NSScrollView. If the custom view is larger than the scrollview window,
everything works as I would like, but if my custom view is smaller
than the window, I get the striped window background at the edges.
What I would like is to have a white background, just like an
NSTextView, and no striped background at all. What is the best way to
achieve this? Do I have to resize my custom view so that it is always
at least as big as the NSClipView, by listening for resize
notifications for the clipview?
A related problem is that if I programmatically reduce the frame of my
custom view and redraw it, the original view remains visible at the
edges, ie, the background does not get redrawn so that the old view's
drawing is erased. Any ideas?
Drew
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ...
Dr. Drew McCormack
Trade Strategist (www.trade-strategist.com)
Trading simulation software for Mac OS X
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.