[NSApp mainWindow] weirdness
[NSApp mainWindow] weirdness
- Subject: [NSApp mainWindow] weirdness
- From: email@hidden (Simon Fraser)
- Date: Mon, 01 Jul 2002 19:34:51 -0700
When does NSApplication set up its 'mainWindow'? I'm seeing cases
where we've got a window on the screen, but [NSApp mainWindow] is
still returning null (this is often at application startup time).
Some time later, [NSApp mainWindow] will correctly return this window.
Does [NSApp mainWindow] only get set after we've been back through
the main event loop after creating the window? Or is there some
other timing wierdness involved?
Simon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.