Whose fault is it: NSOpenGLView or NSTimer? :)
Whose fault is it: NSOpenGLView or NSTimer? :)
- Subject: Whose fault is it: NSOpenGLView or NSTimer? :)
- From: Josh Morris <email@hidden>
- Date: Fri, 11 Jan 2002 20:33:44 -0800 (PST)
In my document-based application, each document window
("window") has in it a NSOpenGLView (subclass) which
draws its contents on a regular time interval via an
NSTimer.
Here's what I don't understand:
If I have multiple document windows open, only one
NSOpenGLView panel will update itself at a time. This
would imply that the NSTimer I have set up is only
functional for drawing the currently visible
NSOpenGLView.
However, if I have two windows open, the last one
opened will not start updating its view until the
other window's draw contents are obscured. This
implies that the OpenGL commands that are being sent
from the NSOpenGLView's drawRect: routine will only be
sent to the view with the most visible drawing space.
Obviously, this is not the result I want. My question
is, how can I make all documents update their own 3d
views' contents on separate timers, regardless of
their active/inactive status? How do I direct OpenGL
commands to a view not in the front?
Please tell me I don't have to use multithreading.
Thanks in advance for any help at all. Vague answers
are welcomed. :)
-Josh Morris
email@hidden
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
- Follow-Ups:
- passwd
- From: Michael Horn <email@hidden>