• 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
Re: NSDocument and Multiple NSWindowControllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument and Multiple NSWindowControllers


  • Subject: Re: NSDocument and Multiple NSWindowControllers
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Wed, 6 Oct 2004 03:46:22 -0700

Hello...

The responder chain is described here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/BasicEventHandling/Concepts/AboutRespChain.html>

And the interaction with an NSDocument subclass in a document based app is described (briefly) here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/Concepts/WhatIsADocument.html>

"(When going up the responder chain, the Application Kit queries a window's NSDocument, if it exists, just after it queries the window delegate, if that is different from the NSDocument.)"

So as long as one of the three windows for the document is currently the key or main window, your action methods in the document will be called.


Hope that helps,

Louis


I'm not a 100% about how the responder chain will work in this situation. Will my NSDocument get the message if none of the windows respond to it (which I wouldn't want to do because I would have to implement the same code in each of the windows)? How/where would be the best place to implement the "hide/show" method?
_______________________________________________
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
References: 
 >NSDocument and Multiple NSWindowControllers (From: "Robbie Haertel" <email@hidden>)

  • Prev by Date: Re: force entire window redraw?
  • Next by Date: Re: Limiting notifications to one document
  • Previous by thread: Re: NSDocument and Multiple NSWindowControllers
  • Next by thread: Addressbook-like editing?
  • Index(es):
    • Date
    • Thread