• 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: Inserting my own Responder before App?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inserting my own Responder before App?


  • Subject: Re: Inserting my own Responder before App?
  • From: Ken Thomases <email@hidden>
  • Date: Wed, 23 Apr 2008 02:37:50 -0500

On Apr 23, 2008, at 1:44 AM, Rick Mann wrote:
I've got a subclass of NSWindowController (a singleton in my app) inserted after the NSApplication in the responder chain, but is there any way for it to be the last responder before the app, such that Cocoa automatically makes things point first to my responder and then I can pass things on to the app?

See this:

http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/chapter_2_section_6.html

and also -[NSResponder setNextResponder:].

However, NSWindowController automatically uses that method to add itself as the next responder after the window it manages. That's illustrated in the above link. So, I don't think you need to do anything special.

Cheers,
Ken
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Inserting my own Responder before App?
      • From: Rick Mann <email@hidden>
References: 
 >Inserting my own Responder before App? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: How to create shortcuts after installing the my package
  • Next by Date: Re: Resource Fork - is this a good use/the right thing to do?
  • Previous by thread: Inserting my own Responder before App?
  • Next by thread: Re: Inserting my own Responder before App?
  • Index(es):
    • Date
    • Thread