• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Code example(s)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Threading, save panels, and segfaults
  • Next by Date: Re: Controlling selection in NSTextFields
  • Previous by thread: Re: NSImageView notification
  • Next by thread: gcc 3.0.x
  • Index(es):
    • Date
    • Thread