From 6aad406ddef9699bf9beffb2aaa69739362f2140 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Mon, 20 Jul 2015 12:10:23 +0200 Subject: [PATCH] Use symbolic constants for binding properties --- Frameworks/Find/src/Find.mm | 2 +- Frameworks/OakAppKit/src/OakSavePanel.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Frameworks/Find/src/Find.mm b/Frameworks/Find/src/Find.mm index 9d035626..321ce9a7 100644 --- a/Frameworks/Find/src/Find.mm +++ b/Frameworks/Find/src/Find.mm @@ -78,7 +78,7 @@ NSString* const FFFindWasTriggeredByEnter = @"FFFindWasTriggeredByEnter"; _windowController.resultsViewController.doubleClickResultAction = @selector(didDoubleClickResult:); _windowController.resultsViewController.target = self; - [_windowController.replaceAllButton bind:@"title" toObject:self withKeyPath:@"replaceAllButtonTitle" options:nil]; + [_windowController.replaceAllButton bind:NSTitleBinding toObject:self withKeyPath:@"replaceAllButtonTitle" options:nil]; [_windowController.replaceAllButton bind:@"enabled2" toObject:self withKeyPath:@"canReplaceAll" options:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(windowWillClose:) name:NSWindowWillCloseNotification object:_windowController.window]; diff --git a/Frameworks/OakAppKit/src/OakSavePanel.mm b/Frameworks/OakAppKit/src/OakSavePanel.mm index bb8a2758..e93ab721 100644 --- a/Frameworks/OakAppKit/src/OakSavePanel.mm +++ b/Frameworks/OakAppKit/src/OakSavePanel.mm @@ -72,7 +72,7 @@ self.view = containerView; [encodingPopUpButton bind:@"encoding" toObject:self withKeyPath:@"encoding" options:nil]; - [lineEndingsPopUpButton bind:@"selectedTag" toObject:self withKeyPath:@"lineEndings" options:@{ NSValueTransformerNameBindingOption: @"OakLineEndingsTransformer" }]; + [lineEndingsPopUpButton bind:NSSelectedTagBinding toObject:self withKeyPath:@"lineEndings" options:@{ NSValueTransformerNameBindingOption: @"OakLineEndingsTransformer" }]; [bomCheckBox bind:NSEnabledBinding toObject:self withKeyPath:@"canUseByteOrderMark" options:nil]; [bomCheckBox bind:NSValueBinding toObject:self withKeyPath:@"useByteOrderMark" options:nil]; }