I would like to initially set a CGPoint property to a particular point (middle of screen). Other methods may subsequently wish to change this property. My thoughts were to initi
static CGPoint kInvalidPoint = {.x = NSIntegerMax, .y = NSIntegerMax}; @implementation MyClass - init() { self = [super init]; if (self) { _oldPoint = kInvalidPoint; } return self; } - (void)foo { if (CGPointEqualToPoint(self.oldPoint, kInvalidPoint)) { // Invalid point. return; } } @end