Re: Document with multiple windows
Re: Document with multiple windows
- Subject: Re: Document with multiple windows
- From: Charles Srstka <email@hidden>
- Date: Mon, 13 May 2002 12:26:18 -0500
On Monday, May 13, 2002, at 05:41 AM, Brendan Younger wrote:
On Monday, May 13, 2002, at 04:06 AM, Charles Srstka wrote:
They already have delegates.
Never mind, though - I found a rather obvious solution. I made all the
windows NSPanels, so that only the main window, an NSWindow, can be
the main window, and thus it's always on the responder chain.
That isn't necessary. From "The Role of Key Objects in Document-Based
Applications", "By some special hard-wiring of the Application Kit, the
NSDocument associated with the key window is the recipient of
first-responder action messages."
Yeah, but the spawned windows end up not being associated with the
document, so it didn't work. I tried to make them all belong to the
document, but then the main document window could be closed, the others
would stay up, and the document would stay open, and when you closed the
last one, the sheet asking if you want to save came out of the auxiliary
window. This is definitely not what I wanted. Making them all NSPanels
except for the main document window worked...
_______________________________________________
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.