• 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
OK to Use C++ Shorthand Constructs in a Cocoa Project?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OK to Use C++ Shorthand Constructs in a Cocoa Project?


  • Subject: OK to Use C++ Shorthand Constructs in a Cocoa Project?
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 03 Nov 2005 18:50:46 -0800
  • Thread-topic: OK to Use C++ Shorthand Constructs in a Cocoa Project?

In my CodeWarrior Cocoa project which I am in the process of building in
Xcode, I use, from my C++ days, a number of C++ Shorthand Constructs such
as:

- declaring an enum without using the keyword enum
- declaring a struct without using the keyword struct
- reference parameters in functions and methods

These compiled with no problem in CodeWarrior since I checkboxed "C++" in
the target settings.  I suppose there is an equivalent checkbox somewhere in
Xcode, but before I go looking for it, I was wondering if someone could
explain to me why C++ is not enabled in a new Cocoa project created by the
Assistant in Xcode?

Is it Bad Programming Practice to use these C++ Shorthand Constructs in a
Cocoa project?  I don't have that many of them and I could easily fix them
if that was advisable.

Jerry Krinock


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: OK to Use C++ Shorthand Constructs in a Cocoa Project?
      • From: Izidor Jerebic <email@hidden>
    • Re: OK to Use C++ Shorthand Constructs in a Cocoa Project?
      • From: Cameron Hayne <email@hidden>
  • Prev by Date: Re: DO and threads
  • Next by Date: Re: predicateWithFormat: argumentArray:
  • Previous by thread: Re: predicateWithFormat: argumentArray:
  • Next by thread: Re: OK to Use C++ Shorthand Constructs in a Cocoa Project?
  • Index(es):
    • Date
    • Thread