From 687aef74adc8b869660a0821a5d69c3b526bb610 Mon Sep 17 00:00:00 2001 From: michael starke Date: Thu, 21 Feb 2013 03:39:18 +0100 Subject: [PATCH] Experimented with toolbar view Added EntryEditView and corresponding controller --- MacPass/EntryEditView.xib | 122 ++++++++++++++++++++++++++++++++ MacPass/MPEntryEditController.h | 13 ++++ MacPass/MPEntryEditController.m | 27 +++++++ MacPass/MPGradientView.h | 13 ++++ MacPass/MPGradientView.m | 28 ++++++++ 5 files changed, 203 insertions(+) create mode 100644 MacPass/EntryEditView.xib create mode 100644 MacPass/MPEntryEditController.h create mode 100644 MacPass/MPEntryEditController.m create mode 100644 MacPass/MPGradientView.h create mode 100644 MacPass/MPGradientView.m diff --git a/MacPass/EntryEditView.xib b/MacPass/EntryEditView.xib new file mode 100644 index 00000000..9155d857 --- /dev/null +++ b/MacPass/EntryEditView.xib @@ -0,0 +1,122 @@ + + + + 1070 + 12A79 + 2142 + 1147 + 592.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 2142 + + + NSCustomView + NSCustomObject + + + com.apple.InterfaceBuilder.CocoaPlugin + + + PluginDependencyRecalculationVersion + + + + + MPEntryEditController + + + FirstResponder + + + NSApplication + + + + 268 + {480, 272} + + + + NSView + + + + + + + view + + + + 2 + + + + + + 0 + + + + + + -2 + + + File's Owner + + + -1 + + + First Responder + + + -3 + + + Application + + + 1 + + + + + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + + + 2 + + + + + MPEntryEditController + NSViewController + + IBProjectSource + ./Classes/MPEntryEditController.h + + + + + 0 + IBCocoaFramework + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + YES + 3 + YES + + diff --git a/MacPass/MPEntryEditController.h b/MacPass/MPEntryEditController.h new file mode 100644 index 00000000..32f88667 --- /dev/null +++ b/MacPass/MPEntryEditController.h @@ -0,0 +1,13 @@ +// +// MPEntryEditController.h +// MacPass +// +// Created by michael starke on 21.02.13. +// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved. +// + +#import "MPViewController.h" + +@interface MPEntryEditController : MPViewController + +@end diff --git a/MacPass/MPEntryEditController.m b/MacPass/MPEntryEditController.m new file mode 100644 index 00000000..71e9dd18 --- /dev/null +++ b/MacPass/MPEntryEditController.m @@ -0,0 +1,27 @@ +// +// MPEntryEditController.m +// MacPass +// +// Created by michael starke on 21.02.13. +// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved. +// + +#import "MPEntryEditController.h" + +@interface MPEntryEditController () + +@end + +@implementation MPEntryEditController + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Initialization code here. + } + + return self; +} + +@end diff --git a/MacPass/MPGradientView.h b/MacPass/MPGradientView.h new file mode 100644 index 00000000..93082678 --- /dev/null +++ b/MacPass/MPGradientView.h @@ -0,0 +1,13 @@ +// +// MPGradientView.h +// MacPass +// +// Created by michael starke on 20.02.13. +// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved. +// + +#import + +@interface MPGradientView : NSView + +@end diff --git a/MacPass/MPGradientView.m b/MacPass/MPGradientView.m new file mode 100644 index 00000000..880f2b26 --- /dev/null +++ b/MacPass/MPGradientView.m @@ -0,0 +1,28 @@ +// +// MPGradientView.m +// MacPass +// +// Created by michael starke on 20.02.13. +// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved. +// + +#import "MPGradientView.h" + +@implementation MPGradientView + +- (id)initWithFrame:(NSRect)frame +{ + self = [super initWithFrame:frame]; + if (self) { + // Initialization code here. + } + + return self; +} + +- (void)drawRect:(NSRect)dirtyRect +{ + // Drawing code here. +} + +@end