• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: To C++ users trying to use Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: To C++ users trying to use Cocoa


  • Subject: Re: To C++ users trying to use Cocoa
  • From: m <email@hidden>
  • Date: Sat, 12 May 2007 13:20:55 -0500

From 1990 through 2001, I used C++ exclusively (with a smattering of Pascal here and there) on big shipping shrink-wrapped apps that you've probably all heard of. While I still use bits of C++ here and there for convenience (for example, I sometimes use a smart-pointer pattern to manage autorelease pools) I endorse Peter's advice to leave your C++ baggage at the door. Objective-C programming is "object oriented", but its a more dynamic language than C++ (which isn't dynamic at all), and this makes an enormous difference.

The only other thing I'd add for newcomers: trying to build an app without using Interface Builder "so I can learn how it all works" is missing the point. Interface Builder is not a crutch. It is a fundamental part of Cocoa development.

Not to be didactic of course....

_murat

On May 12, 2007, at 9:51 AM, Peter Hudson wrote:

Hi there,

Up until 5 years ago I coded only in C++ ( since C++ first happened )
I have built and maintained a number of large ( 3 million plus lines of code ) C++ apps. I guess I was no beginner.


Then I discovered Cocoa. I have now built quite a large GUI based app. in it. One or two things have become clear to me over the last five years.

If you want to build *high-quality* apps and build them *fast* use Cocoa and Objective-C.
Learn the metaphor of working in Cocoa and Objective-C - drop the baggage of continual comparison with C++ - most of it does not apply.
Sensible use of Cocoa encourages an OO metaphor that helps keep development and maintenance easier.


Of exceptions in Objective C and Cocoa - I simply don't use them. I've never found a need to.

Cocoa was built by people who built serious applications - and they have built a set of tools of huge power and elegance to assist in this task ( Cocoa ).

In the app I have built in Cocoa there is no C++ at all. It simply wasn't necessary to use C++

Not to be didactic of course....
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >To C++ users trying to use Cocoa (From: Peter Hudson <email@hidden>)

  • Prev by Date: Re: scrollRangeToVisible
  • Next by Date: Re: NSRulerView background color
  • Previous by thread: Re: To C++ users trying to use Cocoa
  • Next by thread: Re: To C++ users trying to use Cocoa
  • Index(es):
    • Date
    • Thread