How do I set the sender on a NSMenuItem's action?

Posted by Jeff Barger on Stack Overflow See other posts from Stack Overflow or by Jeff Barger
Published on 2010-05-13T03:39:01Z Indexed on 2010/05/13 3:44 UTC
Read the original article Hit count: 244

Filed under:
|
|

The Apple documentation says that the sender passed to the NSMenuItem's action can be set to some custom object, but I can't seem to figure out how to do this. Is there a method I'm not seeing someplace in the documentation?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about target-action