Programming In OS X Tutorials

Back to the Main Page

The Tutorials listed below began as notes to myself as I first attempted to learn Cocoa Programming and later AppleScript. I have found that a good way to consolidate what I have learned is to write something about it that others can follow. It is for me an interesting record of my progress through various programming topics. The tutorials have been published at irregular intervals during 2002 to 2005 in AUSOM News - the magazine of the Apple Users Society of Melbourne. www.ausom.net.au
The Tutorials should be of use to learners and beginners because I wrote them as a learner myself. References to Project Builder should now be updated for XCode. I assume all will work in XCode as described but the pictures may look a bit different. If you have comments about the articles I would like to hear from you. georgewr@bigpond.net.au

1. Writing Simple Programs in C and Java. How to write a simple C program source, compile it in ‘Terminal’ and run the compiled program. How to write a simple Java program source, compile it in ‘Terminal’ and run the compiled program. See October 2002 Ausom News.

2. Writing the same C program in Cocoa. How to create an Aqua user interface using Interface Builder, generate the Cocoa Objective-C source in Project Builder and then build and run the program. Both Interface Builder and Project Builder can be installed from the ‘Developer Disk’ that comes with your OS X. A cut-down version of this tutorial is available. See March 2003 Ausom News.

3. Building the Cocoa Application ‘StopWatch’. Use Interface Builder and Project Builder to create a simple application that can be used as a stop watch to time events.See June 2003 Ausom News.

4. A cut-down version of #2. The #2 tutorial in brief - modified to calculate the Volume of a Sphere.

5. Experimenting With Cocoa. This article describes how to use the Project Builder Foundation Tool template and NSLog as a platform for experimenting and testing Foundation Framework (non - GUI) operations in Cocoa.

6. A Cocoa Interface To Unix. This article introduces XCode development software and builds a very simple Aqua interface with Unix.

7. CurrencyConverter Revisited. The Currency Converter Tutorial is done again using Cocoa Bindings and the NSObjectController new to Interface Bilder.

8. Enhanced Currency Converter. As promised the master/detail interface has been added using Cocoa Bindings. It makes the job very straight foward.

9. Converting Numbers to Words. An article developing a program written entirely in AppleScript to produce the written form of integers - as you would write them out on a cheque for example.

10. An AppleScript Challenge. Can AppleScript relocate a single column of data in AppleWorks Spreadsheet into multiple columns side by side?

11. An AppleScript Massage. Re-format share data downloaded from a watch list to allow it to be imported into Quicken. See May 2005 AUSOM News

12. Ten to AppleScript. My AppleScript clock displays time like this: "The Time is ten to six" or "... a quarter past four". See June 2005 AUSOM News

13. Get a grep on AppleScript. From AppleScript call shell scripts using grep or sed to massage a bank transaction file for import into Excel. See July 2005 AUSOM News

14. News On AppleScript. Make a list of URLs in a text doc then use AppleScript to get Safari to open each site in a new tab. See August 2005 AUSOM News

15. APPLESCRIPT PRESENTATION. At the April 2006 Programmer's SIG I did a session on AS. I tried to convince people that AS has a solid basis in Mac OSX and it continues to be a worthwhile language to master. You can download the presentation in pdf format together with example scripts I used in the presentation. AppleScript Presentation and Accompanying files (1.2MB) archive is available for download.

16. A Programmer's Silly Walk. A very basic introduction to Python programming on Mac OSX. See April 2006 AUSOM News