Libraries or Frameworks?

So, should you be turning all of your common code into frameworks? In general, no. Frameworks are great if you are supplying libraries to third parties for them to be used as-is. Your users can include the frameworks in their application bundles and happily use your stuff.

Where you get into trouble is following along the line of thought I have a suite of apps, so I’ll make a bunch of shared frameworks that all of them can use and put them up in /Library/Frameworks. Along this path lies madness. You need administrator privileges to install and update the frameworks. You will need to use an install package, or else escalate privilege, to install your frameworks.

Once you have your shared frameworks installed, you need ...

Get Advanced Mac OS X Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.