Re: Responder Chain and NSDocumentController
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