On Apr 26, 2007, at 4:47 PM, Timothy Mowlem wrote:
I was aware of the concept of main and key windows. My thinking was
that since there would only be a single window in my case (the
window loaded via the main nib) that using [NSApp mainWindow]
should always return the one window.
That may be (I haven't looked into it) but even if true, there's
still the matter of *when* your single window becomes the main
window. Your awakeFromNib method certainly gets called after the nib
is loaded, objects initialized, and outlets set, but before any
windows are displayed and become key, main or whatever.