Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

how do I set an action to a menu item in xcode?

I know this is really simple, but I don't know where to look to find how to do it. I want to call an function when the user clicks one of the items in the menu bar.

_____________________________

|| File | Edit | Window |

| |

|do something | <-- when I press that

| |

| |

_____________

OS X Mavericks (10.9.2)

Posted on Mar 23, 2014 7:36 PM

Reply
Question marked as Best reply

Posted on Mar 23, 2014 8:08 PM

What have you done so far? Usually you would use the Interface Builder to make a connection from your menu item to an action method, and place whatever code statements you want in the method.

2 replies

how do I set an action to a menu item in xcode?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.