Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Secret About Box

Secret About Box
Thread Tools
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Nov 18, 2000, 04:58 PM
 
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)
     
ali
Forum Regular
Join Date: Sep 2000
Status: Offline
Reply With Quote
Nov 18, 2000, 05:38 PM
 
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
Reply With Quote
Nov 19, 2000, 01:46 PM
 
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)
     
ali
Forum Regular
Join Date: Sep 2000
Status: Offline
Reply With Quote
Nov 20, 2000, 11:37 AM
 
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
Reply With Quote
Dec 4, 2000, 01:25 PM
 
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
The branches of the Great Tree grow without end, yet the Maker knows them all. -D'ni Proverb

http://www.danielbergey.com/
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Dec 4, 2000, 02:52 PM
 
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 :-)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:45 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2