or Connect
AppleInsider › Forums › General › Genius Bar › Newbie Programming Question
New Posts  All Forums:Forum Nav:

Newbie Programming Question

post #1 of 6
Thread Starter 
Hi. I am just starting out trying to do some Mac programming, and have a quick question. In order to learn Cocoa, all the books say you need to learn C first. So I got Pratical C from O'Reillys. Now which program do I use to write the examples in C, and how do I compile them under OSX. Thanks for any help.
"I'm learning how to meditate, so far so good."
Donald Fagen and Walter Becker
Reply
"I'm learning how to meditate, so far so good."
Donald Fagen and Walter Becker
Reply
post #2 of 6
The best thing to do,even though it may seem strange,would be to learn C and Objective C side by side.The reason is that you will only learn the part of C that is necessary to use in Cocoa.Of course,if you want to know how to proagram the Classic enviroment,you would want to learn straight C,but Cocoa uses its own windowing behavoir,which is very easy to code,basically its done visually.C is part of Objective C,but it is used a somewhat differently in the context of Objective C.One book I highly recommend is Kernighan and Ritchie's the C programming language.
post #3 of 6
To answer your question:

There are a number of programs you can use to write and compile your own programs. My personal favorite is Metrowerk's Code Warrior. You can get a learn programming edition for pretty cheap. Around $50 I think. Also, they offer programming classes for free online.

Good Luck!
Favorite Bumper Sticker:
Nuke the Gay Whales for Jesus!
Reply
Favorite Bumper Sticker:
Nuke the Gay Whales for Jesus!
Reply
post #4 of 6
Thread Starter 
Thank you both for your replies. I am excited about the posssibilites of programming on the Mac, partly because of the great community of like minded folks who help in cases like this. Thanks again.
"I'm learning how to meditate, so far so good."
Donald Fagen and Walter Becker
Reply
"I'm learning how to meditate, so far so good."
Donald Fagen and Walter Becker
Reply
post #5 of 6
If you are starting C programming, and just building command line tools, you can use Project Builder in OS X. (recommended)

You can also use any text editor, and use cc (equivalent to gcc) from the terminal to compile it.

In this sense OS X is a much easier platform to get started programming in C on than OS 9.

No need to shell out for Code Warrior if you are just starting out.
post #6 of 6
I'd spank both C and Objective C at the same time, then try to tackle actual programming in Cocoa.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Genius Bar
AppleInsider › Forums › General › Genius Bar › Newbie Programming Question