Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm new in iOS and Mac programming and I want to learn from open source projects.

Where can I download source code for iOS App and Mac?

share|improve this question

closed as not constructive by Jason Salaz, Nathan Greenstein Jan 11 '12 at 19:05

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

    
There is no one right answer to this question. Also, questions about development and programming are off topic here. Please take a look at the FAQs for more info. Thanks! –  Nathan Greenstein Jan 11 '12 at 19:05

4 Answers 4

Learn about and use GitHub.

Search it for iOS & Objective-C projects. You can even contribute to such projects if and when you're ready.

share|improve this answer

Some example applications that have iOS ports and are open source:

For OS X, it is even simpler. Many, many examples there. Since macaco rightly said to learn github and git, you can take for example a look at gitx, a Mac OS X git frontend.

And here is a git tutorial, to get all those sources. If you have XCode 4 installed, you should already have git. Then you can dive into the tutorial, how to create, clone and maintain a repository.

share|improve this answer

While this is more of a reference for the actual applications themselves, how about Open Source Mac? My wife and I constantly refer to this site for free applications. It's categorized pretty well too!

By looking at that list you are probably looking at the most used open source apps, and finding the related source code to them shouldn't be too hard.

I would also suggest using OhLoh to gauge the amount of development activity on a given open source project. (If a project isn't listed there, you can add it).

share|improve this answer

Look up MacPorts at http://www.macports.org. You can download a .dmg file that will install the "port" command. This requires the Terminal app in the /Applications/Utilities folder.

Many GNU and other open source projects are available, and searchable, using the port command. You will need to install the Developer tools from Apple first, through the Mac App store.

The source for these projects is downloaded as part of the build cycle. You can look at the source by navigating to /opt/local/var/macports/distfiles.

See the User Guide at http://guide.macports.org.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.