Code example(s)
Code example(s)
- Subject: Code example(s)
- From: Per Persson <email@hidden>
- Date: Sun, 11 Nov 2001 12:34:37 +0100
I've been reading the recent documentation/newbie threads with much
interest (I'm a _cocoa_ newbie, with 20 yrs experience of
non-OO-programming). Doing some Cocoa programming for fun over the last
6 months I've made all of the newbie mistakes of Cocoa/Obj-C.
To me, the biggest problem has be the scarseness of good coding examples
(I'm pretty sure that the outbreak of ToDo apps that we see today is due
to this...). There are a lot of good simple examples and a few large,
complex examples (Sketch et al.) but very few bridging the gap inbetween.
While I can easily see the power of Cocoa it is also very confusing at
first. Nevertheless, I started out reading, coding, re-reading,
re-coding and so on and finally ended up with what I belive is a useful
program that could be used as a reference when starting out with Obj-
C/Cocoa. For one thing it is a multiple window app that doesn't use the
NSDocument approach, mainly because I wanted to understand the workings
but also because it is a viewer app. It has examples of category use and
distributed objects/interprocess communication even though it is fairly
small.
So, please, use it while you delve into Obj-C/Cocoa!
However, getting a program to work doesn't mean it is good OO-design,
good Obj-C coding style etc., so any feedback would be appreciated (and
incorporated).
The app is called AquaTerm and is a graphics terminal for use with
GNUPlot, see screenshot at
http://homepage.mac.com/persquare/AquaTerm.html
The source is not made public yet, but can be found here:
http://homepage.mac.com/persquare/AquaTerm.s.tgz
Class overview and docs are in AquaTerm/Docs folder.
Cheers,
Per