• 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
How to center a custom NSView in a NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to center a custom NSView in a NSScrollView


  • Subject: How to center a custom NSView in a NSScrollView
  • From: Meik Schuetz <email@hidden>
  • Date: Tue, 13 Jan 2009 14:09:35 +0000

Dear all,
I've already tried with a custom NSClipView, as explained here:

http://www.bergdesign.com/missing_cocoa_docs/nsclipview.html

I also tried setting the height/width of the custom NSView to the size of the NSScrollView, but somehow I do not get it to work correctly.

The question is, how can I center a custom NSView in a NSScrollView, if the visible width and/or height is greater than the fixed size of the NSScrollView?

Thanks a lot for any hint.
Best regards
Meik

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to center a custom NSView in a NSScrollView
      • From: Benjamin Stiglitz <email@hidden>
  • Prev by Date: White background when NSButton is pressed
  • Next by Date: Re: Make the whole view go full screen
  • Previous by thread: Re: White background when NSButton is pressed
  • Next by thread: Re: How to center a custom NSView in a NSScrollView
  • Index(es):
    • Date
    • Thread