use properties

This commit is contained in:
michael starke
2017-06-07 16:19:05 +02:00
parent b9e4214ffd
commit 379d430035
2 changed files with 4 additions and 4 deletions

View File

@@ -738,7 +738,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
} }
BOOL valid = /*targetNode ? targetNode.isEditable : */YES; BOOL valid = /*targetNode ? targetNode.isEditable : */YES;
switch([MPActionHelper typeForAction:[anItem action]]) { switch([MPActionHelper typeForAction:anItem.action]) {
case MPActionAddGroup: case MPActionAddGroup:
valid &= (nil != targetGroup); valid &= (nil != targetGroup);
valid &= !targetGroup.isTrash; valid &= !targetGroup.isTrash;

View File

@@ -165,12 +165,12 @@ typedef NS_ENUM(NSUInteger, MPContentTab) {
#pragma mark - #pragma mark -
#pragma mark Popup #pragma mark Popup
- (IBAction)pickIcon:(id)sender { - (IBAction)pickIcon:(id)sender {
NSAssert([sender isKindOfClass:[NSView class]], @""); NSAssert([sender isKindOfClass:NSView.class], @"");
[self _popupViewController:[[MPIconSelectViewController alloc] init] atView:(NSView *)sender]; [self _popupViewController:[[MPIconSelectViewController alloc] init] atView:(NSView *)sender];
} }
- (IBAction)pickExpiryDate:(id)sender { - (IBAction)pickExpiryDate:(id)sender {
NSAssert([sender isKindOfClass:[NSView class]], @""); NSAssert([sender isKindOfClass:NSView.class], @"");
[self _popupViewController:[[MPDatePickingViewController alloc] init] atView:(NSView *)sender]; [self _popupViewController:[[MPDatePickingViewController alloc] init] atView:(NSView *)sender];
} }