Re: NSOpenGLView 'moves up' on window resize
Re: NSOpenGLView 'moves up' on window resize
- Subject: Re: NSOpenGLView 'moves up' on window resize
- From: Greg Herlihy <email@hidden>
- Date: Sat, 10 Dec 2005 11:49:17 -0800
- Thread-topic: NSOpenGLView 'moves up' on window resize
The first step would be to put the the the OpenGL view inside of an
NScrollView (with Interface Builder¹s "make subview..." of menu command).
>
From your description, it sounds like the scroll bars for the OpenGL view
should be visible only when needed. If so, the next step would be to
configure the NScrollView to automatically hide its scrollbars, again in
Interface Builder. The last step would be to configure the struts and
springs for the NSScrollView and the OpenGL view that it contains.
Since the top edge of the NSScroll view is to remain fixed in location,
there should be no spring at the edge the view. A strut at the bottom edge,
in contrast, permits the base of the NSScrollview resize with the window:
NSScrollView
Since the OpenGL is enclosed entirely within an NSScrollView, it can resize
to match its superview¹s dimensions exactly:
OpenGLView (inside of an NScrollView):
Hope this helps,
Greg
On 12/10/05 10:32 AM, "Michael Hanna" <email@hidden> wrote:
>
when I resize an nswindow, if I resize it to anything smaller than
>
the original size, the contents of the nsopenglview 'move up' past
>
the top of the window. I would like it so that a vertical scrollbar
>
automatically appear instead.. how do I set that behavior? Currently
>
I have NSViewWidthSizable and NSViewHeightSizable set to ON(the
>
double-springs in IB).
>
>
Michael
>
>
--
>
Michael Hanna
>
email@hidden
>
iChat: michaelkhanna(AIM)
>
_______________________________________________
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