Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Lord Hamsa

macrumors 6502a
Original poster
Jul 16, 2013
698
675
I'm thinking about writing an application to distribute via the Mac App Store, but despite being an experienced software developer, I'm brand-new to programming for Mac and Xcode.

In general, I tend to learn better from studying examples than from "how to" guides, so I was wondering if anyone knows of an online repository of sample projects that might be a good place to start looking - what I'm really looking for is just seeing how a fully-functional application is constructed in the IDE.

Ideally, I'd be loping at a bundle that includes multiple applications: server and client pieces of the same overall service. Bonus points for examples that show how to properly code a solution for installing a launchd service.
 
1. Go here:
https://developer.apple.com/library/mac/navigation/index.html

2. Click the "Sample Code" item in the left-hand list.

3. Observe that all available sample code appears in the main list.


To see the sample code related to a particular class, such as NSArray:

1. Visit the primary class reference webpage.
You can usually find this by searching for CLASSNAME class reference, where CLASSNAME is the class of interest. E. g. NSArray class reference produces this:
https://developer.apple.com/library...Foundation/Classes/NSArray_Class/NSArray.html

2. At the top of the main description is usually found an item labeled "Related sample code". This lists all the sample code that's related to the class. Click each link in turn.
 
Hi there,

Yep, the Mac Developer documentation should be your first port of call. Personally, I found this site to be really useful too:

http://www.raywenderlich.com/

It's biased towards iOS, but there's some Mac stuff there too. And quite a bit of what's covered for iOS holds true for OS X, sometimes with a little tweaking.

Good luck!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.