Exercises

  1. Write short but detailed documentation on how to use Evaluator in a Terminal window. In particular, specify what types of mathematical expressions Evaluator will properly calculate.

  2. What happens when you enter two consecutive “illegal” mathematical expressions in Evaluator? Fix the problem.

  3. Investigate lex and yacc and enhance Evaluator by expanding the types of mathematical expressions that it implements.

  4. Explain the role of the NSDocumentController class in this application.

  5. Implement an About box for MathPaper.

  6. Investigate Cocoa’s NSHelpManager class and implement a Help system for MathPaper.

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.