• 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: 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.

  • Prev by Date: Kitchens part deux
  • Next by Date: Solutions for the shfiting sheet bug?
  • Previous by thread: Resizing an NSOpenGLView
  • Next by thread: Re: Resizing an NSOpenGLView
  • Index(es):
    • Date
    • Thread