FGInt ported to Objective-C