Custom NSView positioning inside a scrollview
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