• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom background drawing in NSScrollView : Was there ever an answer to this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: [ADMIN] Spontaneous un-subscription..
  • Next by Date: Re: Vertical Alignment in NSTextView
  • Previous by thread: [ADMIN] Spontaneous un-subscription..
  • Next by thread: Re: Vertical Alignment in NSTextView
  • Index(es):
    • Date
    • Thread