aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomáš Znamenáček2015-01-09 11:26:24 +0100
committerTomáš Znamenáček2015-01-09 11:26:34 +0100
commitf8ce69e9d0d5efacc48d4622aac13cb4a7fbcdf1 (patch)
treed0a77e8097bcea9529c53300bb80ddf52f95f20e
parent6165e6685928c383a9dbdc8e40752eb9506944cc (diff)
downloadMASShortcut-f8ce69e9d0d5efacc48d4622aac13cb4a7fbcdf1.tar.bz2
Markup fixes in README.
-rw-r--r--README.md13
1 files 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