Looking for sample code/projects

Discussion in 'Mac Programming' started by Lord Hamsa, Apr 25, 2014.

  1. Lord Hamsa macrumors 6502a

    Jul 16, 2013
    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.
  2. chown33 macrumors 604

    Aug 9, 2009
    Sailing beyond the sunset
    1. Go here:

    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:

    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.
  3. superscape macrumors 6502a


    Feb 12, 2008
    East Riding of Yorkshire, UK
    Hi there,

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


    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!
  4. Lord Hamsa thread starter macrumors 6502a

    Jul 16, 2013

Share This Page