• 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: 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

References: 
 >Responder Chain and NSDocumentController (From: Seth Willits <email@hidden>)
 >Re: Responder Chain and NSDocumentController (From: Sherm Pendley <email@hidden>)
 >Re: Responder Chain and NSDocumentController (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Drag and drop color swatches
  • Next by Date: Re: If statement evaluation with logical AND
  • Previous by thread: Re: Responder Chain and NSDocumentController
  • Next by thread: Object-C question #1
  • Index(es):
    • Date
    • Thread