Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Damien

macrumors regular
Original poster
Mar 2, 2004
244
31
London
Hey, I am learning C at the moment as part of my uni course. At the same time I wanted to learn how to code for the mac. What differences are there, if any. What should I keep in mind while learning? Any other tips would be welcomed
 
Pure ANSI C is the same (that's the idea of a standard!). GUI programming tends to be specialised to the platform it's on.
 
Damien said:
Hey, I am learning C at the moment as part of my uni course. At the same time I wanted to learn how to code for the mac. What differences are there, if any. What should I keep in mind while learning? Any other tips would be welcomed
C/C++ is a good foundation for learning.
Also take a look at Java. Java/Swing development is platform agnostic. Very nice.
Also, poke through the developer section on Apple website and maybe dl some tools and tutorials.
 
So how different is using xcode? I mean we learn on Visual Studio, while the program would be different shouldnt the same code be fine? Isnt C standard on both?
 
Damien said:
So how different is using xcode? I mean we learn on Visual Studio, while the program would be different shouldnt the same code be fine? Isnt C standard on both?

Exactly. Unless you use any non-standard extensions that might exist in VS. Or use Microsoft libraries (for buildnig GUIs for example).
 
I am also learning C at the moment on my Mac.

What I use varies...sometimes I use textwrangler + gcc, somtimes vi + gcc, and recently I've used XCode every now and then.

So far, I'm finding it to be quite fun..I start CS courses at MSU next fall, so I've been trying to get a start by learning C before school starts. I've been using Teach Yourself C by Herbert Schildt. An excellent book IMO, very easy to follow, and teaches quickly and effectively.
 
As an Amazon Associate, MacRumors earns a commission from qualifying purchases made through links in this post.
Can some tell me what the differences are between C, C++ and C Sharp? Also what on earth is all the different mac code names about Coca? Carbon? What are these?

What is Unix based on as well? :confused:
 
Damien said:
Can some tell me what the differences are between C, C++ and C Sharp? Also what on earth is all the different mac code names about Coca? Carbon? What are these?

What is Unix based on as well? :confused:


C is the programming language is the oldest of them all and some would say a common ancestor of many programming languages, it is not object oriented.

C++ is C with object oriented extensions added

C# is only related to C in the fact that they share a letter.
It's closer to Java being that it's based on a virtual machine and has object oriented facilities.

Unix was built using C

Carbon is the older Mac development style, Cocoa is the new way to do it using yet another language Objective C which is another object oriented extension of C.

That probably confuses more, but hey, it's my understanding of it. If I'm incorrect I'm sure someone will correct me.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.