• 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
Re: NSOpenGLView 'moves up' on window resize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)
>

JPEG image

JPEG image

_______________________________________________
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
  • Follow-Ups:
    • Re: NSOpenGLView 'moves up' on window resize
      • From: Michael Hanna <email@hidden>
References: 
 >NSOpenGLView 'moves up' on window resize (From: Michael Hanna <email@hidden>)

  • Prev by Date: Re: NSObject Exercise comments?
  • Next by Date: Re: NSOpenGLView 'moves up' on window resize
  • Previous by thread: NSOpenGLView 'moves up' on window resize
  • Next by thread: Re: NSOpenGLView 'moves up' on window resize
  • Index(es):
    • Date
    • Thread