C Programming Language Software For Mac Rating: 5,7/10 2449 reviews
  1. Best C Programming Language Software For Mac
  2. C Programming Language Software For Mac Computer
  3. Basic Programming Language For Mac
< Computer Programming

Instructions (software) that allow a computer (hardware) to be used are written using specific symbols, letters and numbers known as a programming or code. Language Because Objective-C was difficult to write in, Apple developed , a programming language for writing software for the Mac. Oct 25, 2013  Xcode is not the best IDE for non-Cocoa Programming I personally prefer not to use Xcode for C programming. I use Eclipse for C and Xcode for Objective-C/Cocoa Libraries. Although Xcode is a beautiful IDE, but it's really designed for developers to take advantage of the Cocoa libraries and other platform-specific documentation. Language: EN Version: 2017. Is one of the most widely used languages in. License: Open Source OS: Unix Linux Windows XP Windows Vista Mac OS X Language: EN Version: 4.5.0. Code::Blocks Studio. Code:: Blocks is a software specially designed for programming. License: Open Source OS: Windows XP. C is an incredibly popular language that has been used since the 1970's to teach computer programming. Importantly, it's used by Harvard in its CS50 course, used to teach all of its students the.

About the platform[edit]

macOS is the primary operating system for the Macintosh computer. It was originally a system designed privately by Apple Inc, however with Mac OS X, it has been based on Unix. Specifically, a modified FreeBSD operating system called 'Darwin'.

There are many different kinds of software that can be developed for Mac OS X. People generally think of applications, but we'll briefly cover some of the other kinds.

Types of Software for Mac OS X[edit]

Applications[edit]

Applications are what people generally think of when they think about software for Mac OS X. Cocoa applications include: Finder, Mail, Address Book, Safari, Microsoft Word, and Microsoft Excel. Anybody can develop applications using Apple's free development tools which includes XCode. Mac OS X applications are developed using Objective-C though there are other possible programming languages that could be used.

or:. you@host:$ sudo port select -set maven maven3 selects that version of Maven. Music production software mac os x you@host:$ sudo port install maven3 will Install Maven 3.0. you@host:$ sudo port install maven will install latest Maven (?).

The most popular languages for use on the macOS platform is Objective-C which could be thought of as Mac OS X's 'native language' since the Mac OS X libraries, or 'frameworks', all have an Objective-C interface. Objective-C includes everything that plain C can do, and adds object-oriented programming. See: Objective-C.

C++ can be used in developing for the Mac, but generally, it is used in addition to Objective-C rather than being in place of Objective-C. Using both Objective-C and C++ is called 'Objective-C++' and is considered to be optional when developing software for Mac OS X: C++

See Programming:Objective-C for a lesson on the basics of Objective-C [1] may also be of assistance.

Some preliminary thoughts:

Objective-C is the language most commonly used in Mac OS Programming. Objective-C entered Mac OS X and has ancestry in NeXT. Cocoa. Before you learn Mac programming you must know the basics of C since it is the basis for Objective-C.

There used to be three separate APIs for developing a Mac application with a GUI:

1. Classic (Mac OS 9 and lower). Developing for the Classic API is no longer done. When Mac OS X first came out, users and developers had a huge investment in software written for Mac Classic OS and Mac OS X used to have an emulation mode so that users could run their old software. Apple has long since stopped support of the Classic API and Classic emulation in Mac OS X.

2. Carbon (Mac OS 8.5 up to and including Mac OS X 10.6 Snow Leopard). Carbon was an API for developers to update their applications that used the Classic API to be run without the Classic emulator. Carbon was a great way that Apple provided developers to upgrade their software to run on Mac OS X without having to totally rewrite their software, but Carbon, like Classic, is no longer supported by Apple.

3. Cocoa (All versions of Mac OS X). Cocoa is the most native API that can be used to develop applications for Mac OS X that are truly 'Mac-like'. Generally, Objective-C will be used along with Cocoa, though there are other options such as Cocoa-AppleScript and Cocoa-Python, but Cocoa-Objective-C is really the 'mainstream' way to develop Cocoa applications.

Resource Forks Files in Mac OS X have a feature that is unique to Mac OS and that is that each file on disk can have two 'forks'. This feature used to be used for Classic and Carbon applications to separate code from resources (such as menus, windows, etc.), and the Mac OS X file system still supports two forks, but you should only use the 'data fork'. The resource fork is non-standard and can be lost when transferring Mac files to other file systems.

AppleScripts[edit]

Another 'native language' for developing Mac OS X applications is AppleScript. AppleScript is a language that Apple invented to automate repetitive tasks. The AppleScript application is located on your Mac at /Applications/Utilities/AppleScript Editor. AppleScript can be used to record AppleEvents, the events that applications send to themselves or to other applications. Why don't you try it out. Open AppleScript Editor, press the record button, do some things with your other applications and watch the script write itself. AppleScript can be used alone or it can be used along with XCode to develop Cocoa Applications using mostly AppleScript instead of Objective-C. This option is mostly for experienced AppleScript programmers who don't know Objective-C.

Automator Workflows[edit]

Apple also provides an application called 'Automator' that can be used to easily automate repetitive tasks. It is located at /Applications/Automator.app

Shell Scripts[edit]

Mac OS X has an application called Terminal that provides a command-line interface to Mac OS X. It is possible to develop scripts for the command line. Terminal.app is located at /Applications/Utilities/Terminal.app To create a shell script, you need a text editor. There is a text editor that comes with Mac OS X called 'TextEdit.app'. It is located in /Applications/TextEdit.app. But actually, what is better than TextEdit is a program such as TextWrangler.app which is available for free from the following link: http://www.barebones.com/products/textwrangler/

The shell that Terminal.app uses by default is called 'bash'. Here is a simple tutorial on developing bash scriptshttp://www.maclife.com/article/columns/terminal_101_automate_terminal_bash_scripts

We won't go any more deeply into shell scripts here in this wikibook, but it's just good to know what they are. You can always google for more information now that you know what to google for.

Command Line Tools[edit]

When you open Terminal and you learn how to type in commands. The commands are usually command-line tools or scripts. Above, we just talked about developing your own scripts with a text editor. It's also possible to develop your own command-line tools, using XCode. This is an advanced thing to do. Usually, power-users will write a shell-script (or some other kind of thing such as an AppleScript or an Automator Workflow) but it's good to know what a command-line tool is. Command-line tools have a textual user-interface rather than a graphical user interface (GUI).

Java[edit]

Java used to be treated by Apple as a 'first class language' to develop for Mac OS, however in recent years, Apple has less support for Java. Now with Mac OS X 10.7 'Lion' and 10.8 'Mountain Lion', Java doesn't even come pre-installed in Mac OS X. Java is still available, but users have to download Java from Oracle's website and install it themselves. Apple's Mac App Store doesn't even allow Java apps to be sold at their store calling Java 'deprecated'.

However, there still are Mac developers who use Java because it has the advantage of being cross-platform compatible. For example, the same source-code can be used to generate software that runs on Mac, Windows, and Linux.

Best programming software for mac

Apple has said that Java reduces the Mac to the 'least common denominator'. That's why they support it less.

Python[edit]

Python is somewhat supported by Apple. In fact, Python is shipped with Mac OS X and is part of the System Folder. There are third-party libraries that allow developers to develop applications using Python and Cocoa together, but these are not very well maintained, and Python on the Mac is most suitable for developing command-line utilities, or cross-platform scripts that aren't really very Mac-like.

Ruby[edit]

Similar to Python.

Websites[edit]

Most Mac users use Safari for their web browser. Safari uses the standards set by w3c.org You can develop websites that work with Safari by following the standards of the w3c.org. Remember to validate your HMTL, CSS, and JavaScript.

HTML Validator:http://validator.w3.org/

CSS Validator:http://jigsaw.w3.org/css-validator/

JavaScript Lint:http://www.javascriptlint.com/online_lint.php

If you're developing websites using your Mac and using Safari, remember to test your webpages on other platforms and with other web browsers.

Mac OS X Specific Languages[edit]

Objective-C is really the 'native' language for Mac OS X development

You could call AppleScript a 'native' language too, but it isn't really used to make commercial applications. It was designed to be used by real power-users to automate their tasks. Although it is possible to use AppleScript to build Cocoa applications in XCode, this would be more for users who already know AppleScript and don't want to learn Objective-C.

Mac OS X Frameworks[edit]

Retrieved from 'https://en.wikibooks.org/w/index.php?title=Computer_Programming/MacOS_Programming&oldid=3608589'

Think C (stylized as THINK C; formerly Lightspeed C) is an extension of the programming language C from the American National Standards Institute (ANSI C) for the classic Mac OS developed by Think Technologies, released first in mid-1986.[1][2] The firm was later acquired by Symantec Corporation and the product continued to be developed by the original author, Michael Kahl. Versions 3 and later were essentially a subset of C++ and supported basic object-oriented programming (OOP) concepts such as single inheritance, and extensions to the C standard that conformed more closely to the needs of Mac OS programming.[3] After version 6, the OOP facilities were expanded to a full C++ implementation, and the product was rebranded Symantec C++ for versions 7 and 8, then under development by different authors.

Think C, and later Symantec C++, featured a class library and framework for Mac programming called the Think Class Library (TCL), which was used extensively for Macintosh application development.

The Lightspeed and Think C integrated development environment (IDE) influenced other such environments, though considered not as advanced as that belonging to Think Pascal, its sister language product. It was considered the standard environment when Macintosh Programmer's Workshop (MPW) was considered an overpriced niche product, and most Macintosh products were developed in it for many years. However, with the transition of the Mac central processing unit (CPU) from the Motorola 68000 series (68K) to the PowerPC, Symantec was widely seen as having fallen behind, and competitor Metrowerks' product CodeWarrior took control of the market.

Despite the decline in popularity of their IDE, Symantec was eventually chosen by Apple to provide next-generation C/C++ compilers for MPW in the form of Sc/Scpp for 68K alongside MrC/MrCpp for PowerPC. These remained Apple's standard compilers until the arrival of Mac OS X replaced them with the GNU Compiler Collection (GCC). Symantec subsequently exited the developer tool business.

Best C Programming Language Software For Mac

Reception[edit]

Bruce F. Webster of Byte named Lightspeed C product of the month for September 1986. While criticizing the documentation as its 'single greatest weakness', Webster stated that Lightspeed C would be the choice if he had to select one compiler for the Macintosh.[4]Byte in 1989 listed Lightspeed C as among the 'Distinction' winners of the Byte Awards, stating that it 'wins our respect because of its powerful features and low price'.[5]

References[edit]

C Programming Language Software For Mac Computer

  1. ^Denny, Bob (July 1986). 'How the Chooser Works with AppleTalk'. MacTech. Vol. 2 no. 7. Retrieved 2019-08-31., mentions Lightspeed C introduction, brief critique.
  2. ^Gordon, Bob (August 1986). 'Menus and Windows in LightSpeed C'. MacTech. Vol. 2 no. 8. Retrieved 2019-08-31.
  3. ^Dallas, Alastair (October 1989). 'A First Look At Think C 4.0'. MacTech. Vol. 5 no. 10. Retrieved 2019-08-31.
  4. ^Webster, Bruce F. (September 1986). 'Two Fine Products'. Byte. p. 335.
  5. ^'The Byte Awards'. Byte. January 1989. p. 327.


Basic Programming Language For Mac

Retrieved from 'https://en.wikipedia.org/w/index.php?title=THINK_C&oldid=947770610'