• 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 NSView positioning inside a scrollview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom NSView positioning inside a scrollview


  • Subject: Custom NSView positioning inside a scrollview
  • From: Giuseppe Alletti <email@hidden>
  • Date: Mon, 31 Jan 2005 10:20:37 +0100

I have a custom NSView inside a NSScrollView, and I want it to assume this behaviour regarding posizioning:

- when the window (and so the scrollview) is larger than the custom view, I want it centered inside the scrollview;
- when the window width is less then the custom view width, I want normal scrollview behaviour for orizontal scrolling;


I tried to obtain this by setting "size" attributes in interface builder for the custom view this way:
- external orizontal autosize attributes: spring
- internal orizontal autosize attribute: straight


But it doesn't do what I expected. Did I miss something? Should I proceed programmatically? In this case, wich is the right place to do that?

Thank you,
...........................
Giuseppe Alletti
...........................

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: newbie unicode problem
  • Next by Date: Re: newbie unicode problem
  • Previous by thread: Re: newbie unicode problem
  • Next by thread: Re: Custom NSView positioning inside a scrollview
  • Index(es):
    • Date
    • Thread