A couple little utilities with an important-sounding name.
Categories on standard Foundation classes
- NSArray
- am_firstObject - returns the first object in the array, or nil
Functions for working with CGSizes and CGRects
- AMRectCenter
- AMRectMakeWithOriginAndSize
- AMRectMakeWithCenterAndSize
- AMRectRectWithSizeCenteredInRect
- AMRectInsetWithAspectRatio
- AMSizeAspectFitToWidth
- AMSizeAspectFitToHeight
- AMPointClampedToRect
Simple macros for DEBUG, INFO, and ERROR logging
- AMLOG_DEBUG
- AMLOG_INFO
- AMLOG_ERROR
- Stuff for making error codes. Needs documentation.