codes about Mac OS X and iOS 5/6