From cfc4bd64d0f5d784633b7ae5d9faf8a6a657f239 Mon Sep 17 00:00:00 2001 From: Tomáš Znamenáček Date: Wed, 14 Jan 2015 09:59:28 +0100 Subject: Updated headerdoc markup for MASShortcutView+Bindings. --- Framework/MASShortcutView+Bindings.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Framework') diff --git a/Framework/MASShortcutView+Bindings.h b/Framework/MASShortcutView+Bindings.h index b0148e7..8cc84df 100644 --- a/Framework/MASShortcutView+Bindings.h +++ b/Framework/MASShortcutView+Bindings.h @@ -1,19 +1,19 @@ #import "MASShortcutView.h" /** - @brief A simplified interface to bind the recorder value to user defaults. + A simplified interface to bind the recorder value to user defaults. - You can bind the @p shortcutValue to user defaults using the standard - @p bind:toObject:withKeyPath:options: call, but since that’s a lot to type + You can bind the `shortcutValue` to user defaults using the standard + `bind:toObject:withKeyPath:options:` call, but since that’s a lot to type and read, here’s a simpler option. - Setting the @p associatedUserDefaultsKey binds the view’s shortcut value + Setting the `associatedUserDefaultsKey` binds the view’s shortcut value to the given user defaults key. You can supply a value transformer to convert - values between user defaults and @p MASShortcut. If you don’t supply - a transformer, the @p NSUnarchiveFromDataTransformerName will be used + values between user defaults and `MASShortcut`. If you don’t supply + a transformer, the `NSUnarchiveFromDataTransformerName` will be used automatically. - Set @p associatedUserDefaultsKey to @p nil to disconnect the binding. + Set `associatedUserDefaultsKey` to `nil` to disconnect the binding. */ @interface MASShortcutView (Bindings) -- cgit v1.2.3 From bdb64f0177a9bac79002ac929d0328b32f10143c Mon Sep 17 00:00:00 2001 From: Tomáš Znamenáček Date: Wed, 14 Jan 2015 10:03:31 +0100 Subject: Use the clear glyph instead of backspace for clearing a shortcut. The recording control used to display the backspace glyph (U+232B) on the button that clears the shortcut. That’s a bit confusing, since the same backspace glyph can also appear inside the control, representing the recorded shortcut. The clear glyph (U+2715, diagonal cross) seems like a better fit – it’s already used in similar context throughout the Apple UIs like search bars. --- Framework/MASShortcutView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Framework') diff --git a/Framework/MASShortcutView.m b/Framework/MASShortcutView.m index aace67e..9f26e07 100644 --- a/Framework/MASShortcutView.m +++ b/Framework/MASShortcutView.m @@ -188,7 +188,7 @@ NSString *const MASShortcutBinding = @"shortcutValue"; - (void)drawRect:(CGRect)dirtyRect { if (self.shortcutValue) { - [self drawInRect:self.bounds withTitle:NSStringFromMASKeyCode(self.recording ? kMASShortcutGlyphEscape : kMASShortcutGlyphDeleteLeft) + [self drawInRect:self.bounds withTitle:NSStringFromMASKeyCode(self.recording ? kMASShortcutGlyphEscape : kMASShortcutGlyphClear) alignment:NSRightTextAlignment state:NSOffState]; CGRect shortcutRect; -- cgit v1.2.3