• 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: Resizing an NSOpenGLView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizing an NSOpenGLView


  • Subject: Re: Resizing an NSOpenGLView
  • From: Ivan Milles <email@hidden>
  • Date: Wed, 5 Mar 2003 21:45:32 +0100

Correct me if I'm wrong, but it sounds like your frame resizing code is
working as you'd like, but that after the frame is resized, you're
looking at a different part of the view than you'd like to be looking
at.

Sadly, that's not the problem. To form an example:

When I start the application; I have the nib setting the OpenGLView's frame size to 100, 100. This makes it completely visible within the scroll rectangle, and everything is peachy.

Now, I push the button to invoke the setNewSize method, which calls [self setFrameSize:NSMakeSize(300,300)]; to set the OpenGL's frame size to three times bigger, which would push it outside the scroll rect's bounds. Now, the scroll rect realizes this, and activates the scoll bars - but still, only the smaller rect is visible.

Now, I yank the scroll bars, and suddenly, some kind of update is done, and the rect pops up to it's 300x300 size, and everything is peachy.

This is driving me completely nuts, so I've put up a web page describing the problem in more detail, along with screen shots. If anyone would care to try and resize an NSOpenGLView this way, I'd be very happy if you would share your results with me.

http://hem.bredband.net/maimil/fenris/resize.html

Thanks for your time,

Ivan Milles
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: id versus Class
  • Next by Date: Re: "Constant" strings are static or autoreleased?
  • Previous by thread: Re: Resizing an NSOpenGLView
  • Next by thread: ControlElements (was re:OutlineView)
  • Index(es):
    • Date
    • Thread