Re: Resizing an NSOpenGLView
Re: Resizing an NSOpenGLView
- Subject: Re: Resizing an NSOpenGLView
- From: Trevor Strohman <email@hidden>
- Date: Wed, 5 Mar 2003 09:56:37 -0800
> This makes the behaviour a little more stable - now I just need to
> rescroll the window to get the correct drawing. (However, if the view
> is smaller than the scroll bars, this is of course not possible.)
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.
If that's so, you just need to add a call to your setNewSize: method
that looks like:
[self scrollRectToVisible:NSMakeRect( .... )];
Trevor
_______________________________________________
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.