• Home
  • What's Tribler
  • Download
  • FAQ
  • Forum
Tribler

Wiki Navigation


Introduction to Cocoa

Cocoa is the graphical API for writing GUI programs on Mac OS/X. There are many tutorials available on the web, but most of them want you to use XCode -- Apple's officially endorsed programming environment. Since Tribler is platform-independent this is not really desirable. Hence, this tutorial, which takes a quick tour through Cocoa to get you started without the help of an IDE.

Objective-C

Cocoa is written in Objective-C, which makes it the ideal language for writing Cocoa programs. Objective-C adds OO constructs to C, but is completely downwards compatible. There is an Objective-C beginner's guide that explains everything you need to know on one page. This FAQ could also occasionally prove useful. Objective-C files end in .m, and to compile an Objective-C program using Cocoa, run:

  gcc mysource.m -o myprogram.o -framework Cocoa

That's it for Objective-C. Lets do some Cocoa.

Your First Cocoa App

See Your First Cocoa App.

Cocoa Memory Management

See Cocoa Memory Management.

Producing a Picture

See Quartz.

Latest news

28 October 2008

The long-awaited Tribler 4.5 is here''

29 April 2008

Tribler Team organized a successful course on Advanced P2P Technology
Read More

17 February 2008

19 Million Euro for P2P research
Read More

Please contact us if you have found a news item that's not listed here.


  • News
  • Developers
  • Business
  • Research
  • Jobs
  • About Us
  • Press
  • Contact
Login