brintos

brintos / llvm-project-archived public Read only

0
0
Text · 540 B · 600feb5 Raw
30 lines · plain
1@interface RootObject2@end3 4@interface BasicClass : RootObject {5  int _foo;6  char _boolean;7}8 9@property(nonatomic, assign) int bar;10@property(atomic, retain) id objectField;11@property(nonatomic, assign) id delegate;12 13- (void)someMethod;14@end15 16@implementation BasicClass17 18@synthesize bar = _bar;19@synthesize objectField = _objectField;20@synthesize delegate = _delegate;21 22- (void)someMethod {23  int value = self.bar;24  _foo = (_boolean != 0) ? self.bar : [self.objectField bar];25  [self setBar:value];26  id obj = self.objectField;27}28@end29 30