• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Panels shared by documents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Panels shared by documents
      • From: Itrat Khan <email@hidden>
  • Prev by Date: NSOutlineView newbie completely flummoxed
  • Next by Date: Re: Cocoa & OpenBase examples
  • Previous by thread: Re: NSOutlineView newbie completely flummoxed
  • Next by thread: Re: Panels shared by documents
  • Index(es):
    • Date
    • Thread