Exercises

  1. Why didn’t we need to add our Makefile from the last chapter to PB?

  2. Why did we choose to add Evaluator to the MathPaper project in PB as a Tool? Are there any other choices?

  3. Where did we put interface and implementation code for the NSTextView category? Is there a better place to put it? What options for category placement are available?

  4. Find out when and how often each of your MathPaper methods is invoked. Do this by inserting NSLog( ) function calls near the beginning of every method in the MathDocument and PaperController classes. Then run MathPaper within PB to see the logged output in the Run pane. Are you surprised at the sequence of method invocations? Does the “big picture” we described in the last chapter make sense?

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.