mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 12:52:21 +00:00
use properties
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user