EBFoundation is a framework that includes various generally-useful classes and utilities, described below.
EBAssert contains various flavors of assertion macros that allow clients to print detailed assertion information (such as file name, line number, and asserted expression), handle assertion failures, and raise exceptions.
EBObservation is an elegantly simple key-value observing (KVO) wrapper, which supports blocks and automatic de-registration of observers.
EBSingleton is an abstract class that implements singleton behavior. Subclasses implement their initialization by overriding -initSingleton
, and clients retrieve the singleton instance via -sharedInstance
.
EBTime contains a simple set of functions for measuring the difference between two instances in time, down to nanosecond resolution.
A set of generally-useful functions and macros.
An NSTimer category allowing a block to be executed instead of a method.
- Mac OS 10.8 or iOS 6. (Earlier platforms have not been tested.)
- Drag EBFoundation.xcodeproj into your project's file hierarchy.
- In your target's "Build Phases" tab:
- Add EBFoundation as a dependency ("Target Dependencies" section)
- Link against libEBFoundation.a ("Link Binary With Libraries" section)
- Add
#import <EBFoundation/EBFoundation.h>
to your source files.
EBFoundation was created for Lasso.
EBFoundation is available under the MIT license; see the LICENSE file for more information.