Re: Responder Chain and NSDocumentController
Re: Responder Chain and NSDocumentController
- Subject: Re: Responder Chain and NSDocumentController
- From: Kevin Ballard <email@hidden>
- Date: Wed, 8 Dec 2004 12:20:30 -0500
IIRC, when I was looking at the NSDocumentController documentation, it
mentioned that it does its magic by some special hard-wiring in AppKit.
On Dec 8, 2004, at 11:59 AM, Seth Willits wrote:
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.
--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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