Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Programming
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="cazabam" data-source="post: 223229" data-attributes="member: 17895"><p>Just a clarification, really. C++ is most certainly not the same on other platforms - the APIs each platform uses vary considerably, and the different compilers can have many different quirks and defficiencies.</p><p></p><p>I think you were specifically thinking of C, which is what most operating systems are written in and has been properly standardised for so long that it pretty much is cross platform compatible (as long as the libraries you use are available - open source ones usually are).</p><p></p><p>Don't worry, there is a reason for this beyond nit-picking! The thing is that C++ is a set of object oriented extensions for the C language that has been butchered over time by different companies. There is another set of object oriented extensions to C that is usually considered more stable and compatible; Objective C.</p><p></p><p>The point here is Mac OS X, especially Cocoa apps, are written in Objective C, not C++. Windows primarily uses C++, and other unix variants use a mix of C, C++ and Objective C. Xcode supports writing apps in Objective C and Java for Cocoa out of the box, so it's probably a good place to start for GUI apps on Mac OS X.</p></blockquote><p></p>
[QUOTE="cazabam, post: 223229, member: 17895"] Just a clarification, really. C++ is most certainly not the same on other platforms - the APIs each platform uses vary considerably, and the different compilers can have many different quirks and defficiencies. I think you were specifically thinking of C, which is what most operating systems are written in and has been properly standardised for so long that it pretty much is cross platform compatible (as long as the libraries you use are available - open source ones usually are). Don't worry, there is a reason for this beyond nit-picking! The thing is that C++ is a set of object oriented extensions for the C language that has been butchered over time by different companies. There is another set of object oriented extensions to C that is usually considered more stable and compatible; Objective C. The point here is Mac OS X, especially Cocoa apps, are written in Objective C, not C++. Windows primarily uses C++, and other unix variants use a mix of C, C++ and Objective C. Xcode supports writing apps in Objective C and Java for Cocoa out of the box, so it's probably a good place to start for GUI apps on Mac OS X. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Programming
Top