Exercises
Instead of creating a doUnaryMinus: method to handle the “+/-” function key in Calculator, add the unary minus function to the enterOp: method.
Instead of creating a single enterOp: method to handle the four arithmetic operations, create four separate methods to handle the four operations.
Get Building Cocoa Applications: A Step by Step Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.