Aesthetics of NSScrollView
Aesthetics of NSScrollView
- Subject: Aesthetics of NSScrollView
- From: Drew McCormack <email@hidden>
- Date: Mon, 7 Oct 2002 21:00:28 +0200
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.