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

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


  • Subject: Re: OK to Use C++ Shorthand Constructs in a Cocoa Project?
  • From: John Stiles <email@hidden>
  • Date: Thu, 03 Nov 2005 21:14:36 -0800

Cameron Hayne wrote:

On 4-Nov-05, at 12:05 AM, John Stiles wrote:

it gives you the freedom to to use basic C++ language constructs like declaring variables in places other than the top of the function, like "for( int x=0; x<10; x++ )". Or simplified syntax for things like "struct Foo {}" versus "typedef struct Foo_ {} Foo;" or whatever the C equivalent was.


I think you can do these things merely by setting the C-flavour to C99 in the XCode properties for your project. That's what I usually do. Sorry - I should have mentioned this in my earlier response.

Well, sure, but you can do those same things and more with the Objective-C++ flavor. :) That's also just a property you set.
Really, either option is fine, but C++ is the more full-featured choice. If you never plan on using those extra features, they're pretty much equivalent.
_______________________________________________
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
References: 
 >OK to Use C++ Shorthand Constructs in a Cocoa Project? (From: Jerry Krinock <email@hidden>)
 >Re: OK to Use C++ Shorthand Constructs in a Cocoa Project? (From: Cameron Hayne <email@hidden>)
 >Re: OK to Use C++ Shorthand Constructs in a Cocoa Project? (From: John Stiles <email@hidden>)
 >Re: OK to Use C++ Shorthand Constructs in a Cocoa Project? (From: Cameron Hayne <email@hidden>)

  • Prev by Date: Printing Header and Footer
  • Next by Date: Re: NSObjectController prepareContent
  • Previous by thread: Re: OK to Use C++ Shorthand Constructs in a Cocoa Project?
  • Next by thread: Re: OK to Use C++ Shorthand Constructs in a Cocoa Project?
  • Index(es):
    • Date
    • Thread