Thanks Greg!  Works great.

About the time I noticed your post I had ended up with this: (seems to work)
- (void) drawRect: (NSRect) rect
{
    NSWindow* main_window = [self window];
    NSRect window_rect = [main_window frame];
NSLog(@"my_window_width=%f, my_window_height=%f", window_rect.size.width, window_rect.size.height);
        
m_controller.render_scene((GLsizei)window_rect.size.width, (GLsizei)window_rect.size.height);
  [[self openGLContext] flushBuffer];
}

Is there a preferred method to do this?

-graham


On May 25, 2008, at 8:02 PM, Greg Titus wrote:

- (void)windowResized:(NSNotification *)notification;
{
        NSSize size = [[self window] frame].size;

NSLog(@"window width = %f, window height = %f", size.width, size.height);
}
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to