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 > CodeWarrior vs Project Builder

CodeWarrior vs Project Builder
Thread Tools
Mac_Nacho
Dedicated MacNNer
Join Date: Feb 2001
Location: Buenos Aires, Argentina
Status: Offline
Reply With Quote
Jul 8, 2003, 08:02 AM
 
I was told that to program in C++ it's better to think using CodeWarrior. Especially if the code has to be ported to the wintel platform.
is it true?
Or better stick to Project Builder and Obj-C?
thanks
N
iMac 1GHz 17" Super Drive
iPod 5GB
     
tobli
Forum Regular
Join Date: Oct 2001
Location: Sweden
Status: Offline
Reply With Quote
Jul 8, 2003, 11:59 AM
 
When it comes to GUI programming, there's nothing like Cocoa, it absolutely rocks. If you need to go cross platform I'd recommend you implement your core logic in C and/or C++. Then you can build your platform specific code on top of that, it's easy to integrate ObjC code with existing C/C++ code. For Windows you might build your GUI in Visual Studio or whatever. You could develop your core logic using either CodeWarrior och Project Builder. I haven't done much C++ programming in PB, but I guess it's ok. You might find CodeWarrior better for C++, but on the other hand it's not free.
     
gralem
Dedicated MacNNer
Join Date: Nov 2000
Location: Malaysia
Status: Offline
Reply With Quote
Jul 10, 2003, 09:57 AM
 
Originally posted by Mac_Nacho:
I was told that to program in C++ it's better to think using CodeWarrior. Especially if the code has to be ported to the wintel platform.
is it true?
Or better stick to Project Builder and Obj-C?
thanks
N
I do very little C++ coding, but there is nothing stopping you from using PB for C++. I do not want to start the flames a-going, but IMHO CodeWarrior is a good tool, but it is especially well known by "legacy" mac developers. But there is nothing that says "C++ is done in CW". The legacy devs love it--and it is supposed to be much faster than PB. But XCode is coming out that is an attempt to be a CW-killer.

If you've never used CW, but want to program in C++, I would start with PB no matter what--it costs you nothing. If you get to a point that you really need to do things PB does not have, then upgrade to CW.

About OjbC vs. C++, there has obviously been a lot of discussion on this topic. I used to be all "ObjC is the only way to go". It is a kewl language. But at this years WWDC, there was a LOT of talk from Apple about C++. Even though they buried OS9 last year, C++ is a *BIG* part of the development environment and is in most cases just as fast as ObjC in OSX. It will always be a part of Apple's OSes for the foreseeable future. (I mean GCC handles it out of the box).

---gralem
     
Gametes
Mac Elite
Join Date: Sep 2000
Location: Norfolk, Va
Status: Offline
Reply With Quote
Jul 10, 2003, 01:02 PM
 
That said, and harboring no feelings that developers should all use ObjC, ObjC will always be the language of the OS for OS X.
So to be truly like an extension of Cocoa ObjC is it. Not that that should be what makes a person decide the way to go.

Anyway. what I really wanted to ask was, for CW people, how do you create GUIs?
When I got CW academic 2 years ago it sucked so bad (read: I couldn't figure out how to make text appear in a window, and all the tutorials were for this "hell world" CLI crap) that I quit programming until this year.
you are not your signature
     
aleph_null
Dedicated MacNNer
Join Date: Jan 2001
Location: Boulder, CO, USA
Status: Offline
Reply With Quote
Jul 10, 2003, 06:22 PM
 
Originally posted by Gametes:
That said, and harboring no feelings that developers should all use ObjC, ObjC will always be the language of the OS for OS X.
So to be truly like an extension of Cocoa ObjC is it. Not that that should be what makes a person decide the way to go.

Anyway. what I really wanted to ask was, for CW people, how do you create GUIs?
When I got CW academic 2 years ago it sucked so bad (read: I couldn't figure out how to make text appear in a window, and all the tutorials were for this "hell world" CLI crap) that I quit programming until this year.
LOL. The old-fashioned way, to be sure.

Actually, you can use interface builder bundles in C/C++ carbon apps without too much pain. Otherwise, and particularly for older apps, it's the old resource fork or some home-grown version of it. The latter, of course, if you need cross-platform agony -- uh, I mean bliss.

Also lots of folks adopted PowerPlant, a Metrowerks C++ framework, which had Constructor, a view editor along the lines of IB, but not as flashy.

As for the question ... I love Codewarrior and will mourn its passing greatly. I use CW on Mac and Visual Studio on Windows and when I need to actually get work done, even if it's windows-specific code, I use CW.
     
aleph_null
Dedicated MacNNer
Join Date: Jan 2001
Location: Boulder, CO, USA
Status: Offline
Reply With Quote
Jul 10, 2003, 07:54 PM
 
Oh right. One thing: CW's code completion is not so great.
     
Angus_D
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jul 11, 2003, 08:46 AM
 
Originally posted by Gametes:
ObjC will always be the language of the OS for OS X.
What exactly are you on about? Most of the actual OS itself isn't written in Obj-C, only the apps.
     
Gametes
Mac Elite
Join Date: Sep 2000
Location: Norfolk, Va
Status: Offline
Reply With Quote
Jul 11, 2003, 03:19 PM
 
And the entire Cocoa framework, right?
you are not your signature
     
   
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 02:21 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,