Panels shared by documents
Panels shared by documents
- Subject: Panels shared by documents
- From: Brent Gulanowski <email@hidden>
- Date: Thu, 20 Jun 2002 16:09:57 -0400
I'm making a map-editor for a game. I'd like a couple of panels that would
be shared between the documents (instead of one per document). For
instance, a statistical data panel, like you'd find in a word processor
which shows word counts and the like. I was thinking of a separate Nib for
each type of panel.
What is the most effective mechanism for a panel associating itself with
the current active document? I suppose the app delegate/controller could
listen for window activation notifications, find the document for the
window, and make sure that the active panel(s) were showing the right
document's data. How does it find the right document? ... or ...
I could make my own notification which the main window's controller could
send, and the panel's controller could pick up that notification, and then
they'd know about each other and go about the task of getting the document
data into the panel. Is there a preferred way to do it?
Brent
--
Brought to you by Mail on Mac OS X. Think Different.
_______________________________________________
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.