Custom background drawing in NSScrollView : Was there ever an answer to this?
Custom background drawing in NSScrollView : Was there ever an answer to this?
- Subject: Custom background drawing in NSScrollView : Was there ever an answer to this?
- From: Philip Riggs <email@hidden>
- Date: Mon, 5 Jan 2004 13:20:00 -0700
Sorry to repost this, but I searched mamasam and found no reply to
this. Did anyone ever answer this?
FROM: Mark Alldritt
DATE: 2003-10-30 22:00
Hello,
When my content view's frame is smaller than the enclosing NSScrollView
(i.e. When the window is resized larger than my content), I want to do
two things:
1) center the document view within the NSScrollView
2) draw a custom background for the areas that lie outside the document
view
(e.g. a drop shadow around the document view)
I'm trying to achieve the same UI effect seen in OmniGraffle or
Photoshop when the window is larger than the content view.
I'm beginning to think that I have to customize the NSScrollView's
NSClipView, but its not clear to me where to start.
Thanks for the help
Cheers
-Mark
_______________________________________________
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.