Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you write program for Mac OS X?

Hi just wondering how do you start writing programs for MAC OS X?

what language does it use? can I use objective C? which IDE do I use? any licensing fee should I know about.

Thanks.

like image 810
001 Avatar asked Sep 06 '10 07:09

001


People also ask

What programming language is used for macOS?

Swift is a robust and intuitive programming language created by Apple for building apps for iOS, Mac, Apple TV, and Apple Watch. It's designed to give developers more freedom than ever.

Does Mac Have writing software?

Pages is a powerful word processor that lets you create stunning documents, and comes included with most Apple devices. And with real-time collaboration, your team can work together from anywhere, whether they're on Mac, iPad, iPhone, or a PC.

Where do you write C code on Mac?

To run the C program in MacOS we need a code editor and code compiler. The Code editor is used to write source code while the code compiler converts the source code into executable files. To write the source code Microsoft Visual Studio Code is used while to convert it into executable files we use command-line tools.


2 Answers

Mac OS X is a great programming platform, as such you can use just about any language you like.

If you wish to write native applications using the Cocoa framework you'll probably want to be using Objective-C. You can download XCode as an IDE for free.

No licensing fees.

like image 170
Greg Sexton Avatar answered Sep 20 '22 12:09

Greg Sexton


Xcode is the apple supplied IDE, and without external libraries some objective C is always required to build applications.

That being said xcode supports multiple types of langauges, and has extensions for many more - and C++ can be spliced in with objective C code - so if you prefer to code in C++ you can write a quick objective C wrapper and do all your own stuff in C++ - or indeed the langauge of your choice. There are a few other open source IDE's but I don't really recommend them - most of them crash on opening in new versions of Mac OS X.

Xcode is found in the developer package on your second mac install disk, or the latest version (with iphone SDK's) can be downloaded once registering on the Apple Developer Website, which you can become a basic member of for free.

As far as licensing goes, unless you plan to make a game for iOS there are no liscensing fees, unless you want a full subscription to apples developer website, which gives you a few extra things from them.

If your trying to write a game, consider using the SDL library, a cross platform wrapper for whole lot of operating system interface functions, including graphics - or you can use it as I do in combination with OpenGL for full 3D Support, hardware acceleration, ect.

like image 32
Tomas Avatar answered Sep 19 '22 12:09

Tomas