Class extension property setter overrides yield unused method warnings
Issue #48
closed
Steps to reproduce:
- declare a property within a class extension
- override the setter
- call the setter from somewhere within the class using dot notation
This yields a "Possibly unused Objective-C method" warning within Faux Pas.
Side Note: When the setter is called using message notation, the warning disappears.
Code Example:
@interface ViewController ()
@property (strong, nonatomic) NSArray *items;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.items = [NSArray array];
}
- (void)setItems:(NSArray *)items
{
if (![_items isEqualToArray:items]) {
_items = items;
}
}
@end
Comments (2)
-
repo owner -
repo owner - changed status to closed
Fixed in v1.2.1
- Log in to comment
Thanks for reporting this. A fix will be included in the next release.