Objective-C open source projects with high quality code?

I think one of the best ways to learn a new programming language is to dive into the source code and view the experience of experienced coders. I found a question asked here in Qaru for other languages, but none of them target Objective-C. The closest I found was this question about Cocoa's attractive user interfaces , but I mean the overall quality of the code, such as the good use of idioms and design patterns, as well as useful documentation. Another good feature is the code base, which is large enough to require real organizational discipline, but small enough so that the beginner can fit his / her head.

Do you think a high-quality open source project meets these criteria?

+51
objective-c cocoa
Jul 01 '09 at 6:15
source share
10 answers

I found Adium to be a well-designed and written Objective-C project. It also has a huge code base.

+20
Jul 01 '09 at 13:20
source share

CocoaDev has a decent list of open source Mac projects: http://cocoadev.com/CocoaOpen

Not all projects are still active, but a decent number. I especially recommend:

+20
Jul 01 '09 at 15:35
source share

I don’t think there is any place to learn all the idioms and best practices of Objective-C, but you can pick them up here and there with time and practice. Cocoa mailing lists and blogs are good resources for this. (There are several questions related to this.)

I myself have not plunged into the source, but Omni frameworks are respected in the Mac community.

I am working on a framework of my own , which is still rough around the edges, but I strive for quality documentation in addition to clear, well-structured code.

+4
Jul 01 '09 at 6:24
source share

Qsb-mac google quick search box - Google Code ]

I think the Google Quick Search Box (QSB) is worth a look. IMHO this is a much cleaner googley rewrite Quicksilver (Note: N. Jitkoff, a QS programmer, is also involved in Google QSB).

+4
Jul 01 '09 at 7:34
source share

Apple has many downloadable examples on its developer website. You can see the source, and the license is BSDish from what I remember (use it for anything, but do not send the original code without a license).

http://developer.apple.com/samplecode/Cocoa/index-date.html

+3
Jul 01 '09 at 7:48
source share

Here is a test application that I wrote earlier today . Download the links in the "get source" section in the upper right corner.

It is small, but it demonstrates good organizational discipline (a separate controller object, and not everything clogged in AppDelegate), a simple model layer with one model class (Header), and the correct use of Cocoa Bindings.

+1
Jul 01 '09 at 7:22
source share

I worked on GNUstep sources, they had a good consistent coding style, and the code was well organized. Of course, the project is unlikely, but given that you know what most classes do, as you used them in your Cocoa projects, it's easy to increase the number that interests you. Some of the GNUstep Applications or Γ‰toilΓ© applications may also be a good place to start.

+1
Jul 01 '09 at 13:08
source share

Check PSTreeGraph , a view control for iPad apps.

+1
Aug 18 2018-11-11T00:
source share
+1
Jul 04 '13 at 11:36 on
source share

iMedia Browser , shows support for strategies 10.4 - 10.7, neatly and purposefully organized and deeply commented. inherent problems using ImageKit boldly approached and resolved.

I am striving for this level of thought mixed with practicality.

0
May 6 '12 at 21:11
source share



All Articles