Exercises
Modify our Calculator application by relabeling the on-screen hex buttons A-F with the lowercase letters a-f. Also, make the “c” key on the keyboard work as the hex c button, and the capital letter “C” work as the Clear button. Finally, fix the keyboard input for the “0” button.
Try using key equivalents for all of the buttons in the Calculator instead of the more complicated way we caught key events in this chapter. How can this be done for hex characters?
Add more sophisticated mathematical functions, such as sin, cos, and log, to our Calculator application. Use IB as a prototyping tool to redesign the Calculator window to accommodate these new functions.
From scratch, develop your own new calculator program that looks and works exactly like the bundled Calculator program in the
/Applicationsfolder.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access