mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 00:49:32 +00:00
Fixed layout issues in Group inspector
Added key-file generator fixes #25 #76 Improvements on the context menu toolbar button to add templates entries
This commit is contained in:
45
MacPass/MPSegmentedContextCell.m
Normal file
45
MacPass/MPSegmentedContextCell.m
Normal file
@@ -0,0 +1,45 @@
|
||||
//
|
||||
// MPSegmentedContextCell.m
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 13.08.13.
|
||||
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MPSegmentedContextCell.h"
|
||||
|
||||
@implementation MPSegmentedContextCell
|
||||
|
||||
- (id)initWithCoder:(NSCoder *)aDecoder {
|
||||
self = [super initWithCoder:aDecoder];
|
||||
if(self) {
|
||||
_contextMenuAction = NULL;
|
||||
_contextMenuTarget = nil;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id)init {
|
||||
self = [super init];
|
||||
if(self) {
|
||||
_contextMenuAction = NULL;
|
||||
_contextMenuTarget = nil;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (SEL)action {
|
||||
if([self selectedSegment] == 1) {
|
||||
return self.contextMenuAction;
|
||||
}
|
||||
return [super action];
|
||||
}
|
||||
|
||||
- (id)target {
|
||||
if([self selectedSegment] == 1) {
|
||||
return self.contextMenuTarget;
|
||||
}
|
||||
return [super target];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user