Cocoa Tutorials

What is Cocoa? A brief history of Cocoa.

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

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
  • 726

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
  • 726

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
  • 726

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
  • 727

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
  • 726

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

Ask a Question

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. Thank you! Solved many headaches :)
View Tutorial          By: Dominik at 2013-07-30 16:51:46

2. Log onto incoming mail server(POP3) - failed
View Tutorial          By: dragos at 2012-12-13 10:41:59

3. it doesn't count for the values like 001 or 02 et
View Tutorial          By: angesh at 2012-02-10 16:15:02

4. very good
View Tutorial          By: Deepika at 2012-03-26 07:00:29

5. Performance is low while working with BULK DATA
View Tutorial          By: kailash at 2009-07-17 06:11:55

6. Plz show me how to use main method reccurssively p
View Tutorial          By: Jyoti Bankar at 2011-07-14 10:31:53

7. hi issac thank you for your sample. can you please
View Tutorial          By: edwin at 2009-05-20 22:04:14

8. Hallo every one. I am working on my project in j2m
View Tutorial          By: radhe at 2010-12-14 08:08:25

9. Good Explanation for the collections. The output f
View Tutorial          By: kalaivanan at 2012-04-11 06:51:49

10. HI can you send "send sms" program throg
View Tutorial          By: Nishanth Chandran Poduval at 2010-04-15 00:31:33