 |
 |
Secret About Box
|
 |
|
 |
|
Admin Emeritus 
Join Date: Oct 2000
Location: Boston, MA
Status:
Offline
|
|
Phew! I've got your attention
Now, I have questions...
Which is better to learn (more useful long term), Carbon or Cocoa? I only know a little Carbon enough to make a window, draw a graphic, etc. But is Cocoa worth learning, or Carbon pursuing?
Anyone know where I can get good Carbon / Cocoa source code (PB projs and games are best)
How do I learn to program stuff for Mac OS X quickly?
Can someone point me to some OpenGL tutorials specifically for Mac / OS X?
A good bank of code would be _most_ appreciated. Thanks!
-parallax
|
|
"Against stupidity, the gods themselves contend in vain" (Schiller)
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Sep 2000
Status:
Offline
|
|
Assuming you have an existing 9 version of your app, Carbonizing will:
(1) allow you to port to Mac OS X and come out with a native Mac OS X version of the app pretty quickly
(2) allow the same sources (and even the same binary) to run on 9 as well as X
If these are not interesting or don't apply to you, then Cocoa is a good choice.
One main reason Cocoa is worth learning is that it's object oriented, and once you're past the initial learning curve, you are likely to be highly productive with it. Your apps will be quick to prototype and get running, small and easily maintainable, easily localizable, and, in the long term, easily able to take advantage ot improvements in the system.
Cocoa is fairly full-featured (so you are able to do a lot of things while staying within the bounds of Cocoa), but you can use other APIs such as Posix or Carbon if needed from within a Cocoa application.
As far as examples, etc:
Apple website has Carbon and Cocoa examples and tutorials available for downloading. Start from http://developer.apple.com/techpubs/macosx/macosx.html and look around.
The technote http://devworld.apple.com/technotes/tn/tn2005.html provides a look at a small simple beginner Cocoa app.
There are some examples (including at least one game) on the Public Beta developer distribution itself as well, look at /Developer/Examples/AppKit, /Developer/Examples/Java/AppKit, /Developer/Examples/Carbon, etc.
Another great looking Cocoa tutorial is the Vermont Recipes at www.stepwise.com.
Ali
[This message has been edited by ali (edited 11-18-2000).]
|
|
|
| |
|
|
|
 |
|
 |
|
Admin Emeritus 
Join Date: Oct 2000
Location: Boston, MA
Status:
Offline
|
|
Thanks Ali!
Can I do Cocoa w/ C++ rather than Objective-C?
I'll check out those links!

|
|
"Against stupidity, the gods themselves contend in vain" (Schiller)
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Sep 2000
Status:
Offline
|
|
Originally posted by parallax:
Can I do Cocoa w/ C++ rather than Objective-C?
If I understand your question correctly, the answer is no: You can't treat Cocoa objects as C++ objects, and message them using C++. One reason for this is that ObjC's object runtime is rather different than C++'s. (But, it is like Java's, and that is why the Cocoa APIs are also available in Java.)
Note that you can mix C++ source files with ObjC source files in your project. But, as far as directly mixing C++ and ObjC within the same file, that support is not there in Public Beta although it used to be possible.
Ali
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Dec 1999
Location: Easley, SC, USA
Status:
Offline
|
|
Hey,
I want to begin learning Cocoa development...I have a bit of BASIC, a little JavaScript and a lot of HyperTalk in my background. What do I need as far as software and documentation? I mean is there an Inside Macintosh for OS X? or some other book I can buy?
Dan
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
First step: Learn C
Second step: Look at the Apple developer site, it has the beginnings of the "Inside Mac OS X" series - Inside Macintosh for OS X.
Third step: Look at vermont recipies
Also: this topic has been discussed in more depth earlier, try reading the forum archives :-)
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|