About The Code Book

The Code Book was a personal collection of programming examples I created when I was learning Objective-C and NeXTSTEP.   I shared a few with others and would often use them as teaching examples of not only the parts of NeXTSTEP but also what the experience of programming NeXTSTEP was like.

The question most programmers have is “How do I get started….”,  the question answered by most programming examples is, “Here is the finished project…”. 

Most programming examples are presented as  “Fait accompli”, with no lessons in the decisions that had to be made and why a task was performed a certain way instead of an alternative.Simply showing an example of an API in use is not a teaching tool.  Programming is a process, you envision and idea, there are some trails and failures, incorrect paths, testing, debugging, and a technique that takes you along the journey.

Part of my plan with this website is to publish a new Code Book for programming Cocoa on OSX.  I started putting example together when Leopard was still in beta, and now that my other projects are finished I’m able to polish them off and publish them here.  Unless otherwise noted you can assume that all examples are written for OSX 10.5 (Leopard) with garbage collection turned on.  You may find that many of them work under 10.4 or without garbage collection but may require some rework.

The Code Book - Snippets contains small snippets of code that I have found useful over the years.

I hope you enjoy all the examples, and if you have any questions feel free to email me karl@karlkraft.com