Re: Newbie question
Re: Newbie question
- Subject: Re: Newbie question
- From: Stefan Pantke <email@hidden>
- Date: Mon, 30 Jun 2003 05:06:45 +0200
Rams,
first of all: I fully understand. Getting lost is easy, if big are like
C* and Mac APIs is the area
of interest.
Since I started coding Mac very recently in the past, I bought some
book from O'Reilly.
The best book, which I know, is
Cocoa in a nutshell
Michael Beam and James Duncan Davidson
O'Reilly
It is a very good introduction in ObjC (although short) and cocoa APIs.
Also, it includes
a complete reference to cocoa.
A bit more step-by-step and more Interface-Builder oriented, is
Cocoa Applications
A Step-by-step Guide
Simson Garfinkel & Michael K. Mahoney.
O'Reilly
This book teaches building cocoa application from the very start.
It tells you,
- how to build a user-interface using interface builder
- how to define a project in project builder
and so on.
If someone knows JAVA quite good, the first 100 pages are ok to start.
The rest is (mostly)
redundant. From time to time, a quick lock inside this book might be
helpful.
For C++, I would propose VERY STRONG:
Effective C++ - 50 specific Ways to Improve Your Programs and Designs
Scott Meyers
Addison-Wesley
My copy is from 1992. Several years ago, I had to develop a C++ based
eCommerce application
and Scott's book teaches very good GOOD STYLE in C++ code.
I loved it - and if I had to code C++ again, I would love it again.
Best recipt to start in cocoa is:
- Read an introduction in ObjC
- Take some days to look in Apple examples
- Read 'cocoa applications' the first 250 pages and build the app along
the book
- If you have specific cocoa questions, then first search an example in
the Developer/Examples/ on your Mac OS X system.
For me personally, memory management of ObjC was for some weeks most
complicated.
Look: Using Java memory management is automatic. That's straight and
simple
Using C memory management is a manual task. That's straight as well.
Not as simple
as Java, but you simply have to deallocate everything that you
allocated. ok.
ObjC/cocoa work along another way, but once understood, it's fine and
easy -
and a bit more efficient than Java.
Good luck,
Stefan
Am Montag, 30.06.03 um 02:52 Uhr schrieb Rams:
>
Hi all,
>
>
I hope this isn't too far off topic, but I'm teaching myself
>
C/C++/Obj-C and I'm a bit lost. Where would I find documentation for
>
the APIs of these languages? I have a book and I'm learning the
>
basics, but the big question on my mind is where are the API docs?
>
>
With Applescript, function descriptions are available in the
>
application's or osaxen's dictionary. With Java there's always
>
>
http://java.sun.com/j2se/1.4.1/docs/api/
>
>
I know where the Cocoa docs are located, but outside of that, all I
>
can find so far for C and friends are header files. These are
>
generally very sparse on information, and seem to be scattered about
>
randomly (I'm sure there is some logic to their organization, but I
>
have yet to figure out what that is) Option-Double Click in PB went
>
nowhere. Doing 'man string' on the command line gives me some
>
interesting information, but still very sparse. What I'm looking for
>
is an index of what classes, functions, etc. are available, and a
>
general description of the classes/functions. I realize I'm just
>
covering the basics at the moment (chapter 3 of Bruce Eckel's Thinking
>
In C++), but syntax doesn't intimidate me and string + cout are
>
getting old pretty fast.
>
>
Any insight will be greatly appreciated.
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.