Reputation: 149
I hate doing following
//in file.h
@property (strong) NSString *reuseIdentifier;
//in file.m
@synthesize reuseIdentifier = _reuseIdentifier;
This feels so redundant. I get the distinction of concepts between property in which is named "reuseIdentifier" and memory block that's named "_reuseIdentifier" but why can't the xcode IDE do the work by itself?
I feel like I am doing chores.
Upvotes: 0
Views: 43
Reputation: 56625
It's not been necessary to explicitly implement or synthesize Objective-C properties since Xcode 4.4 in 2012. See the Xcode 4.4 section of the archived "What's New in Xcode" documentation:
Objective-C
@properties
are synthesized by default when not explicitly implemented.
Upvotes: 4