Window layering and save sheet attachment in multi-window document
Window layering and save sheet attachment in multi-window document
- Subject: Window layering and save sheet attachment in multi-window document
- From: Derrick Bass <email@hidden>
- Date: Wed, 30 Nov 2005 20:59:36 -0600
I have a multi-window document with a main window and several
(optional, controlled by user defaults) subsidiary windows. Only the
main window has shouldCloseDocument set to YES.
I'd like the main window to be in front when the user opens a
document, but it appears that the last window created is always in
front. I tried telling the main window to makeKeyAndOrderFront at the
end of the makeWindowControllers method, but it didn't seem to do
anything; stepping through the code showed that the windows don't
show themselves until well after that function is over; that is
presumably why makeKeyAndOrderFront is being ignored.
So I tried creating the windows in the opposite order; subsidiary
windows first, main window last. But there's another problem with
that. The save sheet appears on the subsidiary window instead of the
main window, which I don't like. Also, on slow computers it is
obvious that the subsidiary windows are opening first, and that just
looks weird.
So how do I get the save sheet to open on the main window AND have
the main window be in front when I open a document?
Thanks for any help!
Derrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden