MBCommon is a lightweight, generic Cocoa library for iOS and OS X. It is designed by Mobiata to be a repository for common code that can be shared across all of Mobiata's open source projects. However, it can definitely be used on its own as it defines a number of classes and categories that are useful in their own right.
MBCommon runs on iOS 5.0 and above and OS X 10.7 and above.
To include MBCommon in your application, clone the MBCommon repository and include all of the MBCommon source files in your project.
$ git clone git://github.com/mobiata/MBCommon.git
To reference any of the functionality defined in MBCommon, simply
#import "MBCommon.h" at the top of your source file.
MBCommon uses ARC (Automatic Reference Counting). If you are not using ARC in your own projects, you will need to set the
-fobjc-arc compiler flag on all MBCommon files. To do this:
- Launch Xcode for your project.
- Navigate to the "Builds Phases" tab of your target(s).
- Find all MBCommon source files and add
-f-objc-arcto the "Compiler Flags" column.