Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open source Objective-C projects with high quality code?

I think one of the best ways to learn a new programming language is to dive into source code and see how experienced coders write. I've found this kind of question asked here on Stack Overflow for other languages, but none targeted at Objective-C. The closest I've found is this question about good-looking Cocoa user interfaces, but I'm thinking in terms of general code quality, such as good use of idioms and design patterns, and usable documentation. Another good characteristic would be a code-base that is large enough to require real organizational discipline, but small enough that a beginner can fit his/her head around.

What do you think is a high-quality open source project that meets these criteria?

like image 542
alanlcode Avatar asked Jul 01 '09 06:07

alanlcode


People also ask

Is Objective-C outdated?

Programming in Objective-C will not become obsolete any time soon because, thanks to its 20 years of existence, it has a large code base, a number of apps maintained, and third-party framework with Objective-C at its core. These solutions and libraries are unlikely to be rebuilt from scratch with a new language.

Is Objective-C deprecated?

It won't be deprecated, but it'll move to Florida to enjoy its golden years. It'll spend days running the legacy app with a million lines of code, and its nights sipping margaritas with the OAuth library everyone fears rewriting.

Which is faster C or Objective-C?

Calling a C function is about 3-6 times faster than calling an Obj-C method, so how can they be equally fast? They can only be equally fast if you never call methods in Obj-C but that some defies the purpose of using Obj-C.

Is Objective-C compatible with C?

Objective C is a set of backward-compatible extensions to C. This is possible because the Objective C features are delimited in two very simple ways: use of the character @ . This character is not currently used in the C language.


2 Answers

There's a decent list of open source Mac projects on CocoaDev: http://cocoadev.com/CocoaOpen

Not all of the projects are still active, but a decent number of them are. I particularly recommend:

  • BWToolkit - http://bitbucket.org/bwalkin/bwtoolkit/
  • BGHUDAppKit - http://www.binarymethod.com/bghudappkit/
  • CHDataStructures - http://cocoaheads.byu.edu/code/CHDataStructures
  • MGTwitterEngine - http://mattgemmell.com/source
  • Sparkle - http://code.google.com/p/sparkleplus/
  • Colloquy - http://colloquy.info/project/wiki/Source%20Code
  • CocoaRest - http://github.com/sdegutis/CocoaREST
  • CorePlot - http://code.google.com/p/core-plot/
like image 190
Dave DeLong Avatar answered Sep 21 '22 00:09

Dave DeLong


I've found Adium to be a well-designed and written Objective-C project. It has a huge codebase, too.

like image 30
mipadi Avatar answered Sep 21 '22 00:09

mipadi