Skip navigation

NSDocument not in the responder chain

217 Views 0 Replies Latest reply: Dec 10, 2012 2:46 AM by rgigger RSS
rgigger Calculating status...
Currently Being Moderated
Dec 10, 2012 2:46 AM

This is my first Mac OS X Cocoa application. I am trying to create a menu item that will grab information from a document window, do something with that info, and then close the window.

 

MessageDocument is an NSDocument subclass.

I added the method "- (IBAction)deliverTheMail:(id)pId" to MessageDoucment

 

I created the Menu item and sent the action "deliverTheMail" to the First Responder.

 

The problem I'm running into is that even after I create a MessageDocument window the menu item never becomes enabled. Shouldn't the NSDocument be in the responder chain?

 

Am I even taking the right approach here? And if so why isn't it working?

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.