Is this the correct approach?
BOOL end = mask & NSEventMaskEndGesture ? YES : NO; BOOL end = mask & NSEventMaskEndGesture ? YES : NO; BOOL end = !! (mask & NSEventMaskEndGesture);
Like a little pair of surprised eyes.Also works for pointers:
BOOL hasError = !! errorObj;