Using properties

This commit is contained in:
Michael Starke
2018-10-22 13:07:39 +02:00
parent 5be3265c17
commit 20ed81a5e7

View File

@@ -41,7 +41,7 @@
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
NSMutableArray *fields = [[NSMutableArray alloc] init];
for(NSString *attribute in [KPKFormat sharedFormat].entryDefaultKeys) {
for(NSString *attribute in KPKFormat.sharedFormat.entryDefaultKeys) {
[fields addObject:[NSString stringWithFormat:@"{%@}", attribute]];
}
[fields addObject:@"{S:Custom}"];
@@ -54,7 +54,7 @@
}
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
[NSNotificationCenter.defaultCenter removeObserver:self];
}
- (NSString *)nibName {