Custom background drawing in NSScrollView
Custom background drawing in NSScrollView
- Subject: Custom background drawing in NSScrollView
- From: Mark Alldritt <email@hidden>
- Date: Thu, 30 Oct 2003 13:00:38 -0800
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
---------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 333 Moss Street
FAX: 250-383-3204 Victoria, B.C.
WEB:
http://www.latenightsw.com/ CANADA V8V-4M9
AIM: markalldritt
_______________________________________________
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.