Skip to content
This repository was archived by the owner on Jun 1, 2021. It is now read-only.

amrox/AMFoundation

Repository files navigation

AMFoundation

A couple little utilities with an important-sounding name.

AMExtensions

Categories on standard Foundation classes

  • NSArray
    • am_firstObject - returns the first object in the array, or nil

AMGeometry

Functions for working with CGSizes and CGRects

  • AMRectCenter
  • AMRectMakeWithOriginAndSize
  • AMRectMakeWithCenterAndSize
  • AMRectRectWithSizeCenteredInRect
  • AMRectInsetWithAspectRatio
  • AMSizeAspectFitToWidth
  • AMSizeAspectFitToHeight
  • AMPointClampedToRect

AMLogMacros

Simple macros for DEBUG, INFO, and ERROR logging

  • AMLOG_DEBUG
  • AMLOG_INFO
  • AMLOG_ERROR

AMError

  • Stuff for making error codes. Needs documentation.

About

Shared code for Mac OS X and iOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published