|
|
16. Now, we'll connect our menu items to the object which performs the action and select the action to be performed.
Click on the File menu to drop it down. Hold down the Control-Key, and click-drag from the Open... menu to the instance of WordDelegate, and release the mouse. Black lines will connect them up. Select "openText:" in the Actions browser, and click "Connect" in the NSMenuItem Inspector (double-click openText: to avoid this second step).
|
|
|
|
Repeat this for "Save" and "New", but double-click the actions "saveText:" and "newText:" respectively.
|
|