I came across to strange behaviour. I used to have:
@property (nonatomic) ApplicationState applicationState;
directly in my Application class. Now it's extracted to protocol
@protocol ApplicationProtocol <NSObject>
@property (nonatomic) ApplicationState applicationState;
ApplicationState is Enum
typedef NS_ENUM(NSUInteger, ApplicationState)
{
ApplicationStateNormal = 0,
ApplicationStateExpanded = 1,
ApplicationStateMaximized = 2
};
Now. It used to work. Now such line:
self.applicationState = ApplicationStateMaximized;
called from implementing class causes no effect.
UPDATE
Agy, rickster you're both right. I forgot add to this question note, that I have already synthesized properties in implementing class. What I haven't notice, that my colleague added getter which returned always the same value (unfortunatelly IDE deosn't show this accessor until I duplicated property in my class)
You needs to synthesize the property:
or declare the property again: