Update StatHat.m

StatHat for Objective C when creating Mac apps. This is a modified version of StatHat's iOS version that works for creating Mac apps.