• 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
Troubles with custom view inside NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Troubles with custom view inside NSScrollView


  • Subject: Troubles with custom view inside NSScrollView
  • From: Martin Hewitson <email@hidden>
  • Date: Fri, 27 Aug 2010 19:47:23 +0200

Dear list,

I have a simple OS X app with custom view (controlsView) which contains lots of different controls. This controlsView has a fixed size, so I want to put it in the middle of a scrollview with a gap around it, so that its size is independent of the size of the application window. This scrollview will reside in the right pane of a splitview (if that matters). I have it more or less working but not very nicely. I can get the controlsView to remain fixed size and the scrollview does the right thing, but to do this I have to switch off autosizing for the custom view of the scrollview. This creates two problems:

1) my controlsView is pinned to the bottom left of the scrollview and I would like it at the top left
2) if I make the app window big enough, I can see the edges of the custom view that belongs to the scrollview.

All of this tells me I'm doing something wrong. Anybody got any good pointers to any examples of such a layout?

A picture speaks a thousand words, so it should look something like this:

https://files.me.com/martinhewitson/06jf2e


Best wishes,

Martin

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
    Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





_______________________________________________

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: [Solved] Troubles with custom view inside NSScrollView
      • From: Martin Hewitson <email@hidden>
  • Prev by Date: Re: Performance issue
  • Next by Date: TARGET_OS_MAC section generates a compile error on an iPhone project?
  • Previous by thread: Re: Odd question about UIViews in UIScrollView
  • Next by thread: Re: [Solved] Troubles with custom view inside NSScrollView
  • Index(es):
    • Date
    • Thread