mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 18:42:24 +00:00
Merge branch 'master' of https://github.com/mstarke/MacPass
This commit is contained in:
@@ -10,6 +10,15 @@
|
|||||||
#import "MPDocument.h"
|
#import "MPDocument.h"
|
||||||
|
|
||||||
@implementation MPCustomFieldTableCellView
|
@implementation MPCustomFieldTableCellView
|
||||||
|
|
||||||
|
- (void)objectDidBeginEditing:(id)editor {
|
||||||
|
[self.window.windowController.document objectDidBeginEditing:editor];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)objectDidEndEditing:(id)editor {
|
||||||
|
[self.window.windowController.document objectDidEndEditing:editor];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)setBackgroundStyle:(NSBackgroundStyle)backgroundStyle {
|
- (void)setBackgroundStyle:(NSBackgroundStyle)backgroundStyle {
|
||||||
super.backgroundStyle = NSBackgroundStyleLight;
|
super.backgroundStyle = NSBackgroundStyleLight;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -822,5 +822,4 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
|||||||
[[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentDidChangeModelPropertyNotification object:self];
|
[[NSNotificationCenter defaultCenter] postNotificationName:MPDocumentDidChangeModelPropertyNotification object:self];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@@ -38,6 +38,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma mark NSEditorRegistration
|
||||||
|
- (void)objectDidBeginEditing:(id)editor {
|
||||||
|
[self.windowController.document objectDidBeginEditing:editor];
|
||||||
|
[super objectDidBeginEditing:editor];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)objectDidEndEditing:(id)editor {
|
||||||
|
[self.windowController.document objectDidEndEditing:editor];
|
||||||
|
[super objectDidEndEditing:editor];
|
||||||
|
}
|
||||||
|
|
||||||
#pragma mark Binding observation
|
#pragma mark Binding observation
|
||||||
- (void)setValue:(id)value forKeyPath:(NSString *)keyPath {
|
- (void)setValue:(id)value forKeyPath:(NSString *)keyPath {
|
||||||
if([keyPath hasPrefix:@"representedObject."]) {
|
if([keyPath hasPrefix:@"representedObject."]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user