• 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: Responder Chain and NSDocumentController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Responder Chain and NSDocumentController


  • Subject: Re: Responder Chain and NSDocumentController
  • From: Seth Willits <email@hidden>
  • Date: Wed, 8 Dec 2004 08:59:01 -0800

On Dec 7, 2004, at 10:27 PM, Sherm Pendley wrote:

How does NSDocumentController get into the responder chain if it's not NSApplication's delegate?

It *is* NSApplication's delegate. From the first paragraph in NSDocumentController's description:


"... As the application delegate, it saves and closes documents when applications are terminated ..."

Yet:


if ([[NSApplication sharedApplication] delegate] == nil) NSBeep();

beeps, and

if ([[NSApplication sharedApplication] delegate] == [NSDocumentController sharedDocumentController])
NSBeep();


doesn't.


Unless I'm missing something else.


Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic


A one-question geek test. If you get the joke, you're a geek:
Seen on a California license plate on a VW Beetle: "FEATURE"
-- Definitely A Geek
------------------------------------------------------------------------ ---


_______________________________________________
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


  • Follow-Ups:
    • Re: Responder Chain and NSDocumentController
      • From: Kevin Ballard <email@hidden>
References: 
 >Responder Chain and NSDocumentController (From: Seth Willits <email@hidden>)
 >Re: Responder Chain and NSDocumentController (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Creating a Class Instance By Name
  • Next by Date: Re: Drag and drop color swatches
  • Previous by thread: Re: Responder Chain and NSDocumentController
  • Next by thread: Re: Responder Chain and NSDocumentController
  • Index(es):
    • Date
    • Thread