In OS X 10.10 (and iOS 8), many pairs of getter / setter methods in Apple frameworks have been replaced by @property declarations. This makes the header interface more understandable and makes importing these APIs into Swift more ... well, Swifty.
// Before - (BOOL)isEnabled; - (void)setEnabled:(BOOL)enabled; // After @property(getter=isEnabled) BOOL enabled
The documentation has not been completely updated to reflect this, so it mistakenly shows isEnabled as deprecated, although the @property declaration means that you can still do one of the following:
BOOL foo = [control isEnabled]; [control setEnabled:YES]; BOOL bar = control.enabled; control.enabled = YES;
source share