mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 10:32:26 +00:00
use properties
This commit is contained in:
@@ -738,7 +738,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
||||
}
|
||||
|
||||
BOOL valid = /*targetNode ? targetNode.isEditable : */YES;
|
||||
switch([MPActionHelper typeForAction:[anItem action]]) {
|
||||
switch([MPActionHelper typeForAction:anItem.action]) {
|
||||
case MPActionAddGroup:
|
||||
valid &= (nil != targetGroup);
|
||||
valid &= !targetGroup.isTrash;
|
||||
|
||||
@@ -165,12 +165,12 @@ typedef NS_ENUM(NSUInteger, MPContentTab) {
|
||||
#pragma mark -
|
||||
#pragma mark Popup
|
||||
- (IBAction)pickIcon:(id)sender {
|
||||
NSAssert([sender isKindOfClass:[NSView class]], @"");
|
||||
NSAssert([sender isKindOfClass:NSView.class], @"");
|
||||
[self _popupViewController:[[MPIconSelectViewController alloc] init] atView:(NSView *)sender];
|
||||
}
|
||||
|
||||
- (IBAction)pickExpiryDate:(id)sender {
|
||||
NSAssert([sender isKindOfClass:[NSView class]], @"");
|
||||
NSAssert([sender isKindOfClass:NSView.class], @"");
|
||||
[self _popupViewController:[[MPDatePickingViewController alloc] init] atView:(NSView *)sender];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user