Cocoa Tutorials

What is Cocoa? A brief history of Cocoa.

  • 2010-09-03
  • Comments
  • Aaron Hillegass
  • 331

The story of Cocoa starts with a delightful bit of history. Once upon a time, two guys named Steve started a company called Apple Computer in their garage. The company grew rapidly, so they hired an experienced executive named John Sculley to be its CEO. After a few conflicts, John Sculley moved Steve Jobs to a position in which he had no control over the company at all. Steve Jobs left to form another computer company, called NeXT Computer.
Read More

Programming Language used in Cocoa Programming

  • 2010-09-03
  • Comments
  • Aaron Hillegass
  • 331

Objective-C is a simple and elegant extension to C, and mastering it will take about two hours if you already know C and an object-oriented language, such as Java or C++.
Read More

Tools for Cocoa Programming

  • 2010-09-03
  • Comments
  • Aaron Hillegass
  • 331

All the tools for Cocoa development come as part of the Mac OS X Developer Tools, and you get them for free with Mac OS X. Although the developer tools will add about a dozen handy applications to your system, you will use primarily two applications: Xcode and Interface Builder. Behind the scenes, the GNU C compiler (gcc) will be used to compile your code, and the GNU debug
Read More

Objects, Classes, Methods, and Messages in Cocoa Programming

  • 2010-09-03
  • Comments
  • Aaron Hillegass
  • 331

What is an object? An object is like a C struct: It takes up memory and has variables inside it. The variables in an object are called instance variables. So when dealing with objects, the first questions we typically ask are: How do you allocate space for one? What instance variables does the object have? How do you destroy the object when you are done with it?
Read More

Life Cycle of a Cocoa Application

  • 2010-09-03
  • Comments
  • Aaron Hillegass
  • 331

Let's briefly discuss the chronology of an application: When the process is started, it runs the NSApplicationMain function, which creates an instance of NSApplication. The application object reads the main nib file and unarchives the objects inside. The objects are all sent the message awakeFromNib. Then the application object checks for events.
Read More

Frameworks in Cocoa Programming

  • 2010-09-03
  • Comments
  • Aaron Hillegass
  • 331

A framework is a collection of classes that are intended to be used together. In other words, the classes are compiled together into a reusable library of code. Any related resources are put into a directory with the library. The directory is renamed with the extension .framework. You can find the built-in frameworks for your machine in /System/Library/Frameworks.
Read More

Most Viewed Articles on Cocoa

Latest Tutorials

Subscribe to Tutorials

Related Tutorials

Listing of files in a tar file in Mac OS X.

Listing of files in a zip file in Mac OS X.

Multithreading versus Multiprocessing in Mac OS X.

Using NSOpenGLView in Cocoa Programming in Mac

Garbage Collector in Cocoa Programming in Mac

Weak References in Mac Cocoa Programming

Web Services in Mac Cocoa Programming

Printing in Mac Cocoa Programming

Tools for Cocoa Programming

What is Cocoa? A brief history of Cocoa.

Programming Language used in Cocoa Programming

Objects, Classes, Methods, and Messages in Cocoa Programming

Frameworks in Cocoa Programming

Life Cycle of a Cocoa Application

Archived Comments

1. there will be a semi-colon(;) after Emiley J and j
View Tutorial          By: Manojit at 2010-02-21 01:37:47

2. my quseation is why use we return statement

View Tutorial          By: pankaj kumar at 2010-08-31 03:53:48

3. the reason for this is quite simple: java expands
View Tutorial          By: vineeth at 2011-08-25 13:54:37

4. Hi,
I am designing a client server multipla

View Tutorial          By: Varun Gupta at 2012-10-15 00:01:57

5. Hello,
I want to attend Sun certified Java

View Tutorial          By: Ganeshraje Bhosale at 2015-08-17 05:22:00

6. if a class is declared as abstract and it contains
View Tutorial          By: nagaraj at 2012-04-25 17:12:30

7. ei! its me again..i badly need you help coz we are
View Tutorial          By: anne226 at 2009-02-11 10:24:21

8. providing explanation about the topics is very use
View Tutorial          By: vikram naidu at 2010-06-09 23:40:41

9. please give me a program of the 12 horoscope using
View Tutorial          By: auvx at 2011-08-03 02:02:56

10. thanks a lot..please tell me how to implement this
View Tutorial          By: agnas at 2008-04-26 12:26:52