From f8ce69e9d0d5efacc48d4622aac13cb4a7fbcdf1 Mon Sep 17 00:00:00 2001 From: Tomáš Znamenáček Date: Fri, 9 Jan 2015 11:26:24 +0100 Subject: Markup fixes in README. --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d753f67..30e8341 100644 --- a/README.md +++ b/README.md @@ -46,10 +46,15 @@ You can see a real usage example in the Demo target. Enjoy! By default, MASShortcut uses a different User Defaults storage format incompatible with Shortcut Recorder. But it’s easily possible to change that, so that you can replace Shortcut Recorder with MASShortcut without having to migrate the shortcuts previously stored by your apps. There are two parts of the story: -1. If you bind the recorder control (`MASShortcutView`) to User defaults, set the Value Transformer field in the Interface Builder to `MASDictionaryTransformer`. This makes sure the shortcuts are written in the Shortcut Recorder format. -2. If you use `MASShortcutBinder` to automatically load shortcuts from User Defaults, set the `bindingOptions` accordingly: - [[MASShortcutBinder sharedBinder] setBindingOptions:@{NSValueTransformerNameBindingOption:MASDictionaryTransformerName}]; - This makes sure that the shortcuts in the Shortcut Recorder format are loaded correctly. +If you bind the recorder control (`MASShortcutView`) to User defaults, set the Value Transformer field in the Interface Builder to `MASDictionaryTransformer`. This makes sure the shortcuts are written in the Shortcut Recorder format. + +If you use `MASShortcutBinder` to automatically load shortcuts from User Defaults, set the `bindingOptions` accordingly: + +```objective-c +[[MASShortcutBinder sharedBinder] setBindingOptions:@{NSValueTransformerNameBindingOption:MASDictionaryTransformerName}]; +``` + +This makes sure that the shortcuts in the Shortcut Recorder format are loaded correctly. # Notifications -- cgit v1.2.3