• 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
NSDocument / window on screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: NSDictionary and XML-format property lists
  • Next by Date: Re: Difficulties with NSWindowController
  • Previous by thread: Re: NSDictionary and XML-format property lists
  • Next by thread: Cocoa Hot Keys API
  • Index(es):
    • Date
    • Thread