-
Book Overview & Buying
-
Table Of Contents
Mac Application Development by Example: Beginner's Guide
By :
Now, we need to handle the user interaction with the pop-up menu so that the Global Currency App updates the table view when the user selects a currency code from the menu.
In Xcode, click on the file named BTSAppDelegate.h in the project navigator and add the following interface method definition:
// Handle the Pop Up Menu selection - (IBAction)selectToCurrency:(id)a_sender;
Click on the file named BTSAppDelegate.m in the project navigator and add the following method implementation stub:
// This method will be invoked whenever a currency
// code is selected from the Pop Up Menu
- (IBAction)selectToCurrency:(id)a_sender
{
NSBeep();
}Click on the file named MainMenu.xib in the project navigator.
Right-click on the pop-up menu and drag to the App Delegate object and release the mouse button.
When the Received Actions item is displayed, select selectToCurrency:.
Click the Run button to run the project.
Select any currency...
Change the font size
Change margin width
Change background colour