c, or cocoa learning resources

paleafterglow

Registered
hello,

i do alot of design and programming work... mainly web based. i do quite a bit of PHP and MySQL stuff.. mainly just running off my own machine.

anyways.. i would really like to learn to develope applications on mac os x. but i have a few questions:

1:: what would you guys suggest i learn first... c, c++, or cocoa... of should i look into java? im away of the learning curves and what not between c, c++, and objective-c... but i have also read that cocoa can be a challenge to experienced c programmers as well. im leaning toward cocoa. but what do you guys suggest?

2:: can any of you point out any good on-line resources or good books to pick up? which would you suggest?


thanks very much
 
I too want to make apps for OS X!!!!

viva la OS X!!!!

Anyway, an friend told me to learn C and then focus on Cocoa. So I bought "Teaching Yourself C in 21 days" a SAMS Publishing book that is pretty good, and they I was advise to buy "Cocoa Programming for Mac OS X" by Aaron Hillegass.

Although I have not been able to devote the time and grey matter to work thourght these heady tomes, I have look through a read sections of each and they are quite good, especially the Hillegass book. He is basically one of the brains behind Cocoa, so you get theinfo straight from the horses mouth when you read this book.

Have fun, and right something cool!
 
thanks much for the reply... and for the info.

i have one idea for a serious app i would like to build.. but its just that, an idea

for the first app to create i was thinkin about trying my hand at creating a web browser... not really for distribution.. i have no interest in joining the browser war.. i just want to make my own for my own personal use so i dont have to use IE of netscape or any of the others.. there are some out there that are nice.. just want to make my own

think this is too big of a project to start off on? any idea where i can get info on developing a web browser? i checked out the mozilla stuff.. but im not sure i would want to base it on mozilla. i dont know.

anyways.. thanks for the info and all that
 
A browser is a little heavy so early. I suggest going to http://oreillynet.com/ and looking at their cocoa stuff. It is really basic but you get a text editor to work in very little time. It's a great feeling to get something to work like that and then you can tweak things to see what goes where. The latest article creates a graphics editor so maybe you want your first project to be a long those lines. Web just has so many rules and protocol
 
hey thanks very very much for the link... the text editor tutorial was really helpfull..

it left me a little confused in general, but i think it just my lack of understanding cocoa and oo programing in general. i dont think i have a clear understanding of some of the methods either.. but a good article still...

again.. thanks very much


alan
 
Yeah, a browser is a huge project. You don't want to get into that. If you are looking for a cool cocoa browser check out chimera (http://chimera.modev.org) its a cocoa browser using the mozilla rendering engine. Pure bliss :D.

end chimera endorsment. :)

Cocoa Programming for Mac OS X by Aaron Hillegass is very very good. I bought it to help me learn and it is really helping!
 
So this is what it's coming to, we were Apple customers and cultish, now we're all(me included) becoming developers...
I'll look into Cocoa Programming, hope it's helpful...
 
Its kind of strange eh? The platform thought to not be good for developing is all of a sudden becoming huge and is getting lots of users and new users to develop for it. :)
 
Well, at least that is a clear sign that a) Apple is doing something right and b) that we really like this new OS
 
im having alot of fun (and some frustration) with learning the development and programing side of macs... but dont get me wrong... i still love designing and creating visual pieces and graphics

i guess really getting into actionscript, php, and mysql really started me off with the programing stuff

and again.. thanks for all your help.. i ordered the "cocoa programing for mac os x" book and hope to get it soon
 
To learn the basics of OO programming, I'd suggest looking at Java. It's fairly easy to learn, and can get you up to speed on OO concepts relatively quickly and painlessly.

Cocoa might be the same -- haven't tried it yet...
 
Cocoa might not be the best language to start of with, but for me it was just too damn cool to waste my time on something else :D. Most of the books and tutorials say that they require a knowladge of ANSI-C. I did not know any C and I am able to find my way through cocoa. I did have an idea on how Object-Oriented programming works.

There are things about cocoa that make it hard (some syntax things, etc.) but there are more things that make it really easy and cool (interface builder integration, etc.).
 
like i said above... i have had a little frustration with some aspects... but im gonna stick with..

im quite fluent in php,actionscript,javascript,html and all that stuff.. im a little familiar with asp and i know enough perl to extensively edit existing perl scripts. so im not completely new to programing.. but i am new oop

but like i said.. its been pretty fun and kool so far.. just been reading alot about it and going through some tutorials

thanks for the support and everything
 
What programming language would you suggest starting out with (for a complete programming newbie):confused:
 
Originally posted by xaqintosh
What programming language would you suggest starting out with (for a complete programming newbie):confused:
Assembly. Definitely. ;)

Or more seriously, I think Java is a good start, C/C++ are both probably a bad start, Perl might be too confusing, a lot of people like Python (I don't, but that's personal preference).

So all in all I'd say Java -- I know that a lot of universities are starting to adopt Java as the "Programming 101" language, then moving to C++ in later courses since C++ is currently the market standard. But Java is simpler, IMHO.
 
ok i created my second app with cocoa... a random number generator... really simple.

i think the thing that im getting confused and mixed up about the most is just the terminalogy... like the differences and relationships between methods, classes, instances/instance variables, objects and so on...

ugh... back to reading
 
mainly just been reading the "Cocoa Programming for Mac OS X" by Aaron Hillegass... and its actually a really easy to read book.. the only thing is that it assumes that the reader is already at least familar with the terminology. i have gone through some tutorials in the "Programming With Cocoa" section on oreillynet.com and those were pretty good.

i think i understand classes and methods best... let me see if i got it straight

a class is basically a set of methods, and a method is basically a function... is that right?

anyways... thanks for the help and all that
 
Back
Top