From c080a5d5d30e303203d023f9bf298eaf28fa3523 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Wed, 1 Oct 2014 15:59:25 +0200 Subject: [PATCH] Use NSNegateBooleanTransformerName constant instead of string --- Frameworks/DocumentWindow/src/FileTypeDialog.mm | 2 +- Frameworks/Find/src/Find.mm | 4 ++-- Frameworks/Find/src/FindWindowController.mm | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Frameworks/DocumentWindow/src/FileTypeDialog.mm b/Frameworks/DocumentWindow/src/FileTypeDialog.mm index 16d5b4cb..e2b11473 100644 --- a/Frameworks/DocumentWindow/src/FileTypeDialog.mm +++ b/Frameworks/DocumentWindow/src/FileTypeDialog.mm @@ -208,7 +208,7 @@ static bool is_installed (oak::uuid_t const& uuid) { [installingBundleActivityTextField bind:NSValueBinding toObject:[BundlesManager sharedInstance] withKeyPath:@"activityText" options:nil]; [installingBundleProgressIndicator bind:NSValueBinding toObject:[BundlesManager sharedInstance] withKeyPath:@"progress" options:nil]; - [installingBundleProgressIndicator bind:NSIsIndeterminateBinding toObject:[BundlesManager sharedInstance] withKeyPath:@"determinateProgress" options:@{ NSValueTransformerNameBindingOption: @"NSNegateBoolean" }]; + [installingBundleProgressIndicator bind:NSIsIndeterminateBinding toObject:[BundlesManager sharedInstance] withKeyPath:@"determinateProgress" options:@{ NSValueTransformerNameBindingOption: NSNegateBooleanTransformerName }]; [installingBundleProgressIndicator startAnimation:self]; OakShowSheetForWindow(installingBundleWindow, aWindow, ^(NSInteger returnCode){ }); diff --git a/Frameworks/Find/src/Find.mm b/Frameworks/Find/src/Find.mm index 85412183..95b30711 100644 --- a/Frameworks/Find/src/Find.mm +++ b/Frameworks/Find/src/Find.mm @@ -1052,7 +1052,7 @@ NSString* const FFFindWasTriggeredByEnter = @"FFFindWasTriggeredByEnter"; res = button = OakCreateCheckBox(nil); button.identifier = identifier; [[button cell] setControlSize:NSSmallControlSize]; - [button bind:@"enabled" toObject:self withKeyPath:@"performedReplaceAll" options:@{ NSValueTransformerNameBindingOption: @"NSNegateBoolean" }]; + [button bind:@"enabled" toObject:self withKeyPath:@"performedReplaceAll" options:@{ NSValueTransformerNameBindingOption: NSNegateBooleanTransformerName }]; button.action = @selector(toggleExcludedCheckbox:); button.target = self; } @@ -1061,7 +1061,7 @@ NSString* const FFFindWasTriggeredByEnter = @"FFFindWasTriggeredByEnter"; [button unbind:NSValueBinding]; } - [button bind:NSValueBinding toObject:item withKeyPath:@"excluded" options:@{ NSValueTransformerNameBindingOption: @"NSNegateBoolean" }]; + [button bind:NSValueBinding toObject:item withKeyPath:@"excluded" options:@{ NSValueTransformerNameBindingOption: NSNegateBooleanTransformerName }]; button.state = item.excluded ? NSOffState : NSOnState; } else if([identifier isEqualToString:@"match"]) diff --git a/Frameworks/Find/src/FindWindowController.mm b/Frameworks/Find/src/FindWindowController.mm index a19af97e..90d54f6f 100644 --- a/Frameworks/Find/src/FindWindowController.mm +++ b/Frameworks/Find/src/FindWindowController.mm @@ -301,7 +301,7 @@ static NSButton* OakCreateStopSearchButton () [self.regularExpressionCheckBox bind:NSValueBinding toObject:_objectController withKeyPath:@"content.regularExpression" options:nil]; [self.wrapAroundCheckBox bind:NSValueBinding toObject:_objectController withKeyPath:@"content.wrapAround" options:nil]; [self.ignoreWhitespaceCheckBox bind:NSEnabledBinding toObject:_objectController withKeyPath:@"content.canIgnoreWhitespace" options:nil]; - [self.replaceAndFindButton bind:NSEnabledBinding toObject:_objectController withKeyPath:@"content.folderSearch" options:@{ NSValueTransformerNameBindingOption: @"NSNegateBoolean" }]; + [self.replaceAndFindButton bind:NSEnabledBinding toObject:_objectController withKeyPath:@"content.folderSearch" options:@{ NSValueTransformerNameBindingOption: NSNegateBooleanTransformerName }]; NSView* contentView = self.window.contentView; for(NSView* view in [self.allViews allValues])