NSDocument / window on screen
NSDocument / window on screen
- Subject: NSDocument / window on screen
- From: Raphael Sebbe <email@hidden>
- Date: Tue, 19 Jun 2001 16:19:14 +0200
Hi all,
Is there a (nice) way for the document to know when its window is first
brought on screen ? I mean I have some OpenGL initialization that can
only be done when the drawable has been created.
One way I found was to make the document the window's delegate, and
implement -windowDidBecomeMain with some variable to make sure I only do
that the first time it is invoked, but other objects (notification
listeners) receive notification before the delegate which is bad in my
case.
Raphael