windowDidBecomeMain: question
windowDidBecomeMain: question
- Subject: windowDidBecomeMain: question
- From: "Bell, Carl" <email@hidden>
- Date: Tue, 9 Apr 2002 14:28:25 -0500
- Thread-topic: windowDidBecomeMain: question
Howdy,
Are newly created windows guaranteed to become "main" or "key" when
they first become visible? I discovered that it's incorrect to display
a sheet from inside awakeFromNib because the window has not yet been
displayed and you get a floating sheet. Since I already have a way
in my document for displaying "deferred" messages in sheets, I can
simply put up the sheet once the window is displayed. Right now I am
doing that within the delegate's windowDidBecomeMain: method but want
to make sure that there isn't a scenario where my window could be
created in the background or something, e.g. the user clicked really
fast on another window before the new one showed up, etc. Thanks in
advance.
-cb
________________________________________________________________________
Carl W. Bell Baylor University Electronic Libraries
Sr. Analyst/Programmer <
http://www3.baylor.edu/~Carl_Bell/>
_______________________________________________
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.