[
  {
    "path": ".gitignore",
    "content": "# Xcode\n.DS_Store\n*/build/*\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\nxcuserdata\nprofile\n*.moved-aside\nDerivedData\n.idea/\n*.hmap\n*.xccheckout\n\n#CocoaPods\nPods\n"
  },
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2013-2015 Rudd Fawcett\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "RFKeyboardToolbar<br /> [![RFGravatarImageView Version](http://img.shields.io/cocoapods/v/RFKeyboardToolbar.svg?style=flat)](http://cocoadocs.org/docsets/RFGravatarImageView/1.1/) ![License MIT](http://img.shields.io/badge/license-MIT-orange.svg?style=flat) ![reposs](https://reposs.herokuapp.com/?path=ruddfawcett/RFKeyboardToolbar&style=flat)\n====================\nThis is a flexible UIView and UIButton subclass to add customized buttons and toolbars to your UITextFields/UITextViews.  This project was inspired by the toolbar seen in [iOctocat](http://ioctocat.com).\n\n## Installation\n\n### Installation with CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like RFKeyboardToolbar in your projects.\n\n#### Podfile\n\n```ruby\nplatform :ios, '7.0'\npod \"RFKeyboardToolbar\", \"~> 1.3\"\n```\n\n### Installation without CocoaPods\n\nJust drag the RFKeyboardToolbar folder into your project and import it.\n\n```obj-c\n#import 'RFKeyboardToolbar.h'\n```\n\n## Use\n\nRFKeyboardToolbar is pretty easy to use with your UITextFields or UITextViews.  After you've imported `RFKeyboardToolbar`, you can add a toolbar to anything that has an inputAccessoryView.  \n\nI've commented on the initialization below, to help you get a better understanding of it.\n\n```obj-c\n// Create a new RFToolbarButton\nRFToolbarButton *exampleButton = [RFToolbarButton buttonWithTitle:@\"Example\"];\n\n// Add a button target to the exampleButton\n[exampleButton addEventHandler:^{\n    // Do anything in this block here\n    [_textView insertText:@\"You pressed a button!\"];\n} forControlEvents:UIControlEventTouchUpInside];\n\n// Create an RFKeyboardToolbar, adding all of your buttons, and set it as your inputAcessoryView\n_textView.inputAccessoryView = [RFKeyboardToolbar toolbarWithButtons:@[exampleButton]];\n\n// Add the UITextView/UITextField\n[self.view addSubview:_textView];\n```\n\nHope you enjoy it!  Please Fork and send Pull Requests!\n\n## Screenshots\n\n![RFMarkdownTextView](http://i.imgur.com/NEAocbW.png)\n\n## Contributors\n- [Rudd Fawcett (@ruddfawcett)] (https://github.com/ruddfawcett) - Creator\n- [Brandon Butler (@Hackmodford)] (https://github.com/Hackmodford)\n- [Jesús A. Álvarez (@zydeco)] (https://github.com/zydeco)\n\n## License\n\nRFKeyboardToolbar is available under the MIT license. See the LICENSE file for more info.\n"
  },
  {
    "path": "RFKeyboardToolbar/RFKeyboardToolbar.h",
    "content": "//\n//  RFKeyboardToolbar.h\n//\n//  Created by Rudd Fawcett on 12/3/13.\n//  Copyright (c) 2013 Rudd Fawcett. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#include <AvailabilityMacros.h>\n\n#import \"RFToolbarButton.h\"\n\n@interface RFKeyboardToolbar : UIView\n\n/**\n *  The buttons of the toolbar.\n */\n@property (nonatomic, strong) NSArray *buttons;\n\n/**\n *  Creates a new toolbar.\n *\n *  @param buttons The buttons to draw in the view.\n *\n *  @return A RFKeyboardToolbar.\n */\n+ (instancetype)toolbarWithButtons:(NSArray *)buttons;\n\n/**\n *  Creates a new toolbar.\n *\n *  @param buttons The buttons to draw in the view.\n *\n *  @return A RFKeyboardToolbar.\n */\n+ (instancetype)toolbarViewWithButtons:(NSArray *)buttons DEPRECATED_MSG_ATTRIBUTE(\"This will still work, but there's a shorter method available, toolbarWithButtons:\");\n\n/**\n *  \n *\n *  @param buttons  Sets the buttons for the toolbar.\n *  @param animated Whether or not it should be animated.\n */\n- (void)setButtons:(NSArray *)buttons animated:(BOOL)animated;\n\n@end\n"
  },
  {
    "path": "RFKeyboardToolbar/RFKeyboardToolbar.m",
    "content": "//\n//  RFKeyboardToolbar.m\n//\n//  Created by Rudd Fawcett on 12/3/13.\n//  Copyright (c) 2013 Rudd Fawcett. All rights reserved.\n//\n\n#import \"RFKeyboardToolbar.h\"\n\n@interface RFKeyboardToolbar ()\n\n/**\n *  The toolbar view.\n */\n@property (nonatomic,strong) UIView *toolbarView;\n/**\n *  The scroll view that's faked to look like a toolbar.\n */\n@property (nonatomic,strong) UIScrollView *scrollView;\n/**\n *  The fake top border to replicate the toolbar.\n */\n@property (nonatomic,strong) CALayer *topBorder;\n\n@end\n\n@implementation RFKeyboardToolbar\n\n+ (instancetype)toolbarWithButtons:(NSArray *)buttons {\n    return [[RFKeyboardToolbar alloc] initWithButtons:buttons];\n}\n\n+ (instancetype)toolbarViewWithButtons:(NSArray *)buttons {\n    return [[RFKeyboardToolbar alloc] initWithButtons:buttons];\n}\n\n- (id)initWithButtons:(NSArray *)buttons {\n    self = [super initWithFrame:CGRectMake(0, 0, self.window.rootViewController.view.bounds.size.width, 40)];\n    if (self) {\n        _buttons = [buttons copy];\n        \n        self.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;\n        [self addSubview:[self inputAccessoryView]];\n    }\n    return self;\n}\n\n- (void)layoutSubviews {\n    CGRect frame = _toolbarView.bounds;\n    frame.size.height = 0.5f;\n    \n    _topBorder.frame = frame;\n}\n\n- (UIView *)inputAccessoryView {\n    _toolbarView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, 40)];\n    _toolbarView.backgroundColor = [UIColor colorWithWhite:0.973 alpha:1.0];\n    _toolbarView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;\n    \n    _topBorder = [CALayer layer];\n    _topBorder.frame = CGRectMake(0.0f, 0.0f, self.bounds.size.width, 0.5f);\n    _topBorder.backgroundColor = [UIColor colorWithWhite:0.678 alpha:1.0].CGColor;\n    \n    [_toolbarView.layer addSublayer:_topBorder];\n    [_toolbarView addSubview:[self fakeToolbar]];\n    \n    return _toolbarView;\n}\n\n- (UIScrollView *)fakeToolbar {\n    _scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, 40)];\n    _scrollView.backgroundColor = [UIColor clearColor];\n    _scrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;\n    _scrollView.showsHorizontalScrollIndicator = NO;\n    _scrollView.contentInset = UIEdgeInsetsMake(6.0f, 0.0f, 8.0f, 6.0f);\n    \n    [self addButtons];\n    \n    return _scrollView;\n}\n\n- (void)addButtons {\n    NSUInteger index = 0;\n    NSUInteger originX = 8;\n    \n    CGRect originFrame;\n    \n    for (RFToolbarButton *eachButton in _buttons) {\n        originFrame = CGRectMake(originX, 0, eachButton.frame.size.width, eachButton.frame.size.height);\n        eachButton.frame = originFrame;\n        \n        [_scrollView addSubview:eachButton];\n        \n        originX = originX + eachButton.bounds.size.width + 8;\n        index++;\n    }\n    \n    CGSize contentSize = _scrollView.contentSize;\n    contentSize.width = originX - 8;\n    _scrollView.contentSize = contentSize;\n}\n\n- (void)setButtons:(NSArray *)buttons {\n    [_buttons makeObjectsPerformSelector:@selector(removeFromSuperview)];\n    _buttons = [buttons copy];\n    [self addButtons];\n}\n\n- (void)setButtons:(NSArray *)buttons animated:(BOOL)animated {\n    if (!animated) {\n        self.buttons = buttons;\n        return;\n    }\n    \n    NSMutableSet *removeButtons = [NSMutableSet setWithArray:_buttons];\n    [removeButtons minusSet:[NSSet setWithArray:buttons]];\n    NSMutableSet *addButtons = [NSMutableSet setWithArray:buttons];\n    [addButtons minusSet:[NSSet setWithArray:_buttons]];\n    _buttons = [buttons copy];\n    \n    // calculate end frames\n    NSUInteger originX = 8;\n    NSUInteger index = 0;\n    NSMutableArray *buttonFrames = [NSMutableArray arrayWithCapacity:_buttons.count];\n    \n    for (RFToolbarButton *button in _buttons) {\n        CGRect frame = CGRectMake(originX, 0, button.frame.size.width, button.frame.size.height);\n        [buttonFrames addObject:[NSValue valueWithCGRect:frame]];\n        \n        originX += button.bounds.size.width + 8;\n        index++;\n    }\n    \n    CGSize contentSize = _scrollView.contentSize;\n    contentSize.width = originX - 8;\n    if (contentSize.width > _scrollView.contentSize.width) {\n        _scrollView.contentSize = contentSize;\n    }\n    \n    // make added buttons appear from the right\n    [addButtons enumerateObjectsUsingBlock:^(RFToolbarButton *button, BOOL *stop) {\n        button.frame = CGRectMake(originX, 0, button.frame.size.width, button.frame.size.height);\n        [_scrollView addSubview:button];\n    }];\n    \n    // animate\n    [UIView animateWithDuration:0.2 animations:^{\n        [removeButtons enumerateObjectsUsingBlock:^(RFToolbarButton *button, BOOL *stop) {\n            button.alpha = 0;\n        }];\n        \n        [_buttons enumerateObjectsUsingBlock:^(RFToolbarButton *button, NSUInteger idx, BOOL *stop) {\n            button.frame = [buttonFrames[idx] CGRectValue];\n        }];\n        \n        _scrollView.contentSize = contentSize;\n    } completion:^(BOOL finished) {\n        [removeButtons makeObjectsPerformSelector:@selector(removeFromSuperview)];\n    }];\n}\n\n@end\n"
  },
  {
    "path": "RFKeyboardToolbar/RFToolbarButton.h",
    "content": "//\n//  RFToolbarButton.h\n//\n//  Created by Rudd Fawcett on 12/3/13.\n//  Copyright (c) 2013 Rudd Fawcett. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n/**\n *  The block used for each button.\n */\ntypedef void (^eventHandlerBlock)(void);\n\n@interface RFToolbarButton : UIButton\n\n/**\n *  Creates a new RFToolbarButton.\n *\n *  @param title The string to show on the button.\n *\n *  @return A new button.\n */\n+ (instancetype)buttonWithTitle:(NSString *)title;\n\n/**\n *  Creates a new RFToolbarButton.\n *\n *  @param title        The string to show on the button.\n *  @param eventHandler The event handler block.\n *  @param controlEvent The type of event.\n *\n *  @return A new button.\n */\n+ (instancetype)buttonWithTitle:(NSString *)title andEventHandler:(eventHandlerBlock)eventHandler forControlEvents:(UIControlEvents)controlEvent;\n\n/**\n *  Adds the event handler for the button.\n *\n *  @param eventHandler The event handler block.\n *  @param controlEvent The type of event.\n */\n- (void)addEventHandler:(eventHandlerBlock)eventHandler forControlEvents:(UIControlEvents)controlEvent;\n\n@end\n"
  },
  {
    "path": "RFKeyboardToolbar/RFToolbarButton.m",
    "content": "//\n//  RFToolbarButton.m\n//\n//  Created by Rudd Fawcett on 12/3/13.\n//  Copyright (c) 2013 Rudd Fawcett. All rights reserved.\n//\n\n#import \"RFToolbarButton.h\"\n\n@interface RFToolbarButton ()\n\n/**\n *  The button's title.\n */\n@property (nonatomic, strong) NSString *title;\n\n/**\n *  The button's event block.\n */\n@property (nonatomic, copy) eventHandlerBlock buttonPressBlock;\n\n@end\n\n@implementation RFToolbarButton\n\n+ (instancetype)buttonWithTitle:(NSString *)title {\n    return [[self alloc] initWithTitle:title];\n}\n\n+ (instancetype)buttonWithTitle:(NSString *)title andEventHandler:(eventHandlerBlock)eventHandler forControlEvents:(UIControlEvents)controlEvent {\n    RFToolbarButton *newButton = [RFToolbarButton buttonWithTitle:title];\n    [newButton addEventHandler:eventHandler forControlEvents:controlEvent];\n    \n    return newButton;\n}\n\n- (id)initWithTitle:(NSString *)title {\n    _title = title;\n    return [self init];\n}\n\n- (id)init {\n    CGSize sizeOfText = [self.title sizeWithAttributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:14.f]}];\n    \n    if (self = [super initWithFrame:CGRectMake(0, 0, sizeOfText.width + 18.104, sizeOfText.height + 10.298)]) {\n        self.backgroundColor = [UIColor colorWithWhite:0.902 alpha:1.0];\n        \n        self.layer.cornerRadius = 3.0f;\n        self.layer.borderWidth = 1.0f;\n        self.layer.borderColor = [UIColor colorWithWhite:0.8 alpha:1.0].CGColor;\n        \n        [self setTitle:self.title forState:UIControlStateNormal];\n        [self setTitleColor:[UIColor colorWithWhite:0.500 alpha:1.0] forState:UIControlStateNormal];\n        \n        self.titleLabel.font = [UIFont boldSystemFontOfSize:14.f];\n        self.titleLabel.textColor = [UIColor colorWithWhite:0.500 alpha:1.0];\n    }\n    return self;\n}\n\n- (void)addEventHandler:(eventHandlerBlock)eventHandler forControlEvents:(UIControlEvents)controlEvent {\n    self.buttonPressBlock = eventHandler;\n    [self addTarget:self action:@selector(buttonPressed) forControlEvents:controlEvent];\n}\n\n- (void)buttonPressed {\n    self.buttonPressBlock();\n}\n\n@end\n"
  },
  {
    "path": "RFKeyboardToolbar.podspec",
    "content": "Pod::Spec.new do |s|\n  s.name         = 'RFKeyboardToolbar'\n  s.version      = '1.3'\n  s.summary      = 'A flexible UIView and UIButton subclass to add customized buttons and toolbars to your UITextFields/UITextViews.'\n  s.homepage     = 'https://github.com/ruddfawcett/RFKeyboardToolbar'\n  s.license      = 'MIT'\n  s.license      = { :type => 'MIT', :file => 'LICENSE' }\n  s.author       = { 'Rudd Fawcett' => 'rudd.fawcett@gmail.com' }\n  s.social_media_url = 'https://twitter.com/ruddfawcett'\n  s.platform     = :ios, '7.0'\n  s.source       = { :git => 'https://github.com/ruddfawcett/RFKeyboardToolbar.git', :tag => 'v1.3' }\n  s.source_files  = 'RFKeyboardToolbar/*'\n  s.requires_arc = true\nend\n"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbar/AppDelegate.h",
    "content": "//\n//  AppDelegate.h\n//  RFKeyboardToolbarDemo\n//\n//  Created by Rudd Fawcett on 12/3/13.\n//  Copyright (c) 2013 Rudd Fawcett. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"ViewController.h\"\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbar/AppDelegate.m",
    "content": "//\n//  AppDelegate.m\n//  RFKeyboardToolbarDemo\n//\n//  Created by Rudd Fawcett on 12/3/13.\n//  Copyright (c) 2013 Rudd Fawcett. All rights reserved.\n//\n\n#import \"AppDelegate.h\"\n\n@implementation AppDelegate\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];\n    \n    ViewController *viewController = [[ViewController alloc] init];\n    viewController.view.backgroundColor = [UIColor whiteColor];\n    \n    UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:viewController];\n    \n    self.window.rootViewController = navController;\n    \n    [self.window makeKeyAndVisible];\n    return YES;\n}\n\n@end\n"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbar/Images.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"2x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbar/Images.xcassets/LaunchImage.launchimage/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"orientation\" : \"portrait\",\n      \"idiom\" : \"iphone\",\n      \"extent\" : \"full-screen\",\n      \"minimum-system-version\" : \"7.0\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"orientation\" : \"portrait\",\n      \"idiom\" : \"iphone\",\n      \"subtype\" : \"retina4\",\n      \"extent\" : \"full-screen\",\n      \"minimum-system-version\" : \"7.0\",\n      \"scale\" : \"2x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbar/RFKeyboardToolbarDemo-Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleDisplayName</key>\n\t<string>${PRODUCT_NAME}</string>\n\t<key>CFBundleExecutable</key>\n\t<string>${EXECUTABLE_NAME}</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.ruddfawcett.${PRODUCT_NAME:rfc1034identifier}</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>${PRODUCT_NAME}</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1.0</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbar/RFKeyboardToolbarDemo-Prefix.pch",
    "content": "//\n//  Prefix header\n//\n//  The contents of this file are implicitly included at the beginning of every source file.\n//\n\n#import <Availability.h>\n\n#ifndef __IPHONE_5_0\n#warning \"This project uses features only available in iOS SDK 5.0 and later.\"\n#endif\n\n#ifdef __OBJC__\n    #import <UIKit/UIKit.h>\n    #import <Foundation/Foundation.h>\n#endif\n"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbar/ViewController.h",
    "content": "//\n//  ViewController.h\n//  RFKeyboardToolbarDemo\n//\n//  Created by Rudd Fawcett on 12/3/13.\n//  Copyright (c) 2013 Rudd Fawcett. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class RFKeyboardToolbar;\n\n@interface ViewController : UIViewController <UITextViewDelegate>\n\n@end\n"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbar/ViewController.m",
    "content": "//\n//  ViewController.m\n//  RFKeyboardToolbarDemo\n//\n//  Created by Rudd Fawcett on 12/3/13.\n//  Copyright (c) 2013 Rudd Fawcett. All rights reserved.\n//\n\n#import \"ViewController.h\"\n#import \"RFKeyboardToolbar.h\"\n\n@interface ViewController ()\n\n@property (strong, nonatomic) UITextView *textView;\n@property (strong, nonatomic) RFKeyboardToolbar *keyboardToolbar;\n\n@end\n\n@implementation UITextView (InsertWord)\n\n- (void)insertWord:(NSString*)word {\n    // insert a word into the field, adding a space before and/or after it as necessary\n    NSCharacterSet *whitespace = [NSCharacterSet whitespaceAndNewlineCharacterSet];\n    NSRange selectedRange = self.selectedRange;\n    NSString *text = self.text;\n    BOOL hasSpaceBefore = selectedRange.location == 0 || [whitespace characterIsMember:[text characterAtIndex:selectedRange.location-1]];\n    BOOL hasSpaceAfter = selectedRange.location+selectedRange.length == text.length || [whitespace characterIsMember:[text characterAtIndex:selectedRange.location+selectedRange.length]];\n    \n    NSMutableString *wordText = word.mutableCopy;\n    if (!hasSpaceBefore) [wordText insertString:@\" \" atIndex:0];\n    if (!hasSpaceAfter) [wordText appendString:@\" \"];\n    [self insertText:wordText];\n}\n\n@end\n\n@implementation ViewController\n\n- (void)viewDidLoad\n{\n    [super viewDidLoad];\n    \n    self.title = @\"RFKeyboardToolbar\";\n    \n    _textView = [[UITextView alloc] initWithFrame:self.view.bounds];\n    \n    NSMutableArray *buttons = NSMutableArray.array;\n    \n    NSNumberFormatter *numberFormatter = [NSNumberFormatter new];\n    [numberFormatter setNumberStyle:NSNumberFormatterSpellOutStyle];\n    \n    for (int i = 1; i <= 20; i++) {\n        RFToolbarButton *button = [RFToolbarButton buttonWithTitle:[numberFormatter stringFromNumber:@(i)] andEventHandler:^{\n            [_textView insertText:@\"You pressed a button!\"];\n        } forControlEvents:UIControlEventTouchUpInside];\n        \n        [buttons addObject:button];\n    }\n    \n    _keyboardToolbar = [RFKeyboardToolbar toolbarWithButtons:buttons];\n    _textView.inputAccessoryView = _keyboardToolbar;\n    _textView.delegate = self;\n    \n    [self.view addSubview:_textView];\n}\n\n- (void)textViewDidChange:(UITextView *)textView {\n    // count words\n    NSArray *allWords = [textView.text.lowercaseString componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];\n    NSCountedSet *words = [NSCountedSet new];\n    for (__strong NSString *word in allWords) {\n        word = [word stringByTrimmingCharactersInSet:[NSCharacterSet punctuationCharacterSet]];\n        if (word.length == 0) continue;\n        [words addObject:word];\n    }\n    \n    // dictionary of existing words => buttons\n    NSDictionary *oldButtons = [NSDictionary dictionaryWithObjects:_keyboardToolbar.buttons forKeys:[_keyboardToolbar.buttons valueForKey:@\"title\"]];\n    \n    // create new buttons\n    NSMutableArray *newButtons = [NSMutableArray arrayWithCapacity:words.count];\n    for (NSString *word in words) {\n        // create or reuse button\n        RFToolbarButton *button = oldButtons[word];\n        if (button == nil) {\n            button = [RFToolbarButton buttonWithTitle:word];\n            [button addEventHandler:^{\n                [_textView insertWord:word];\n            } forControlEvents:UIControlEventTouchUpInside];\n        }\n        [newButtons addObject:button];\n    }\n    \n    // sort by frequency and alphabetically\n    [newButtons sortUsingComparator:^NSComparisonResult(id obj1, id obj2) {\n        NSUInteger count1 = [words countForObject:[obj1 title]];\n        NSUInteger count2 = [words countForObject:[obj2 title]];\n        if (count1 == count2) return [[obj1 title] compare:[obj2 title]];\n        return count1 > count2 ? NSOrderedAscending : NSOrderedDescending;\n    }];\n    [_keyboardToolbar setButtons:newButtons animated:YES];\n}\n\n@end\n"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbar/en.lproj/InfoPlist.strings",
    "content": "/* Localized versions of Info.plist keys */\n\n"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbar/main.m",
    "content": "//\n//  main.m\n//  RFKeyboardToolbarDemo\n//\n//  Created by Rudd Fawcett on 12/3/13.\n//  Copyright (c) 2013 Rudd Fawcett. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n#import \"AppDelegate.h\"\n\nint main(int argc, char * argv[])\n{\n    @autoreleasepool {\n        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));\n    }\n}\n"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbarDemo.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\tCEEF0E23184E157600B7DEDF /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEEF0E22184E157600B7DEDF /* Foundation.framework */; };\n\t\tCEEF0E25184E157600B7DEDF /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEEF0E24184E157600B7DEDF /* CoreGraphics.framework */; };\n\t\tCEEF0E27184E157600B7DEDF /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEEF0E26184E157600B7DEDF /* UIKit.framework */; };\n\t\tCEEF0E2D184E157600B7DEDF /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = CEEF0E2B184E157600B7DEDF /* InfoPlist.strings */; };\n\t\tCEEF0E2F184E157600B7DEDF /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CEEF0E2E184E157600B7DEDF /* main.m */; };\n\t\tCEEF0E33184E157600B7DEDF /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CEEF0E32184E157600B7DEDF /* AppDelegate.m */; };\n\t\tCEEF0E39184E157600B7DEDF /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CEEF0E38184E157600B7DEDF /* ViewController.m */; };\n\t\tCEEF0E3B184E157600B7DEDF /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CEEF0E3A184E157600B7DEDF /* Images.xcassets */; };\n\t\tCEEF0E71184E9AED00B7DEDF /* RFKeyboardToolbar.m in Sources */ = {isa = PBXBuildFile; fileRef = CEEF0E6E184E9AED00B7DEDF /* RFKeyboardToolbar.m */; };\n\t\tCEEF0E72184E9AED00B7DEDF /* RFToolbarButton.m in Sources */ = {isa = PBXBuildFile; fileRef = CEEF0E70184E9AED00B7DEDF /* RFToolbarButton.m */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXFileReference section */\n\t\tCEEF0E1F184E157600B7DEDF /* RFKeyboardToolbarDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RFKeyboardToolbarDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tCEEF0E22184E157600B7DEDF /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };\n\t\tCEEF0E24184E157600B7DEDF /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };\n\t\tCEEF0E26184E157600B7DEDF /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };\n\t\tCEEF0E2A184E157600B7DEDF /* RFKeyboardToolbarDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = \"RFKeyboardToolbarDemo-Info.plist\"; sourceTree = \"<group>\"; };\n\t\tCEEF0E2C184E157600B7DEDF /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = \"<group>\"; };\n\t\tCEEF0E2E184E157600B7DEDF /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\tCEEF0E30184E157600B7DEDF /* RFKeyboardToolbarDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = \"RFKeyboardToolbarDemo-Prefix.pch\"; sourceTree = \"<group>\"; };\n\t\tCEEF0E31184E157600B7DEDF /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\tCEEF0E32184E157600B7DEDF /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = \"<group>\"; };\n\t\tCEEF0E37184E157600B7DEDF /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = \"<group>\"; };\n\t\tCEEF0E38184E157600B7DEDF /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = \"<group>\"; };\n\t\tCEEF0E3A184E157600B7DEDF /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = \"<group>\"; };\n\t\tCEEF0E41184E157600B7DEDF /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };\n\t\tCEEF0E49184E157600B7DEDF /* RFKeyboardToolbarDemoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = \"RFKeyboardToolbarDemoTests-Info.plist\"; sourceTree = \"<group>\"; };\n\t\tCEEF0E4B184E157600B7DEDF /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = \"<group>\"; };\n\t\tCEEF0E4D184E157600B7DEDF /* RFKeyboardToolbarTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RFKeyboardToolbarTests.m; sourceTree = \"<group>\"; };\n\t\tCEEF0E6D184E9AED00B7DEDF /* RFKeyboardToolbar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RFKeyboardToolbar.h; sourceTree = \"<group>\"; };\n\t\tCEEF0E6E184E9AED00B7DEDF /* RFKeyboardToolbar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RFKeyboardToolbar.m; sourceTree = \"<group>\"; };\n\t\tCEEF0E6F184E9AED00B7DEDF /* RFToolbarButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RFToolbarButton.h; sourceTree = \"<group>\"; };\n\t\tCEEF0E70184E9AED00B7DEDF /* RFToolbarButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RFToolbarButton.m; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\tCEEF0E1C184E157600B7DEDF /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tCEEF0E25184E157600B7DEDF /* CoreGraphics.framework in Frameworks */,\n\t\t\t\tCEEF0E27184E157600B7DEDF /* UIKit.framework in Frameworks */,\n\t\t\t\tCEEF0E23184E157600B7DEDF /* Foundation.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\tCEEF0E16184E157600B7DEDF = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tCEEF0E28184E157600B7DEDF /* RFKeyboardToolbarDemo */,\n\t\t\t\tCEEF0E47184E157600B7DEDF /* RFKeyboardToolbarTests */,\n\t\t\t\tCEEF0E21184E157600B7DEDF /* Frameworks */,\n\t\t\t\tCEEF0E20184E157600B7DEDF /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tCEEF0E20184E157600B7DEDF /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tCEEF0E1F184E157600B7DEDF /* RFKeyboardToolbarDemo.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tCEEF0E21184E157600B7DEDF /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tCEEF0E22184E157600B7DEDF /* Foundation.framework */,\n\t\t\t\tCEEF0E24184E157600B7DEDF /* CoreGraphics.framework */,\n\t\t\t\tCEEF0E26184E157600B7DEDF /* UIKit.framework */,\n\t\t\t\tCEEF0E41184E157600B7DEDF /* XCTest.framework */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tCEEF0E28184E157600B7DEDF /* RFKeyboardToolbarDemo */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tCEEF0E31184E157600B7DEDF /* AppDelegate.h */,\n\t\t\t\tCEEF0E32184E157600B7DEDF /* AppDelegate.m */,\n\t\t\t\tCEEF0E37184E157600B7DEDF /* ViewController.h */,\n\t\t\t\tCEEF0E38184E157600B7DEDF /* ViewController.m */,\n\t\t\t\tCEEF0E3A184E157600B7DEDF /* Images.xcassets */,\n\t\t\t\tCEEF0E6C184E9AED00B7DEDF /* RFKeyboardToolbar */,\n\t\t\t\tCEEF0E29184E157600B7DEDF /* Supporting Files */,\n\t\t\t);\n\t\t\tname = RFKeyboardToolbarDemo;\n\t\t\tpath = RFKeyboardToolbar;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tCEEF0E29184E157600B7DEDF /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tCEEF0E2A184E157600B7DEDF /* RFKeyboardToolbarDemo-Info.plist */,\n\t\t\t\tCEEF0E2B184E157600B7DEDF /* InfoPlist.strings */,\n\t\t\t\tCEEF0E2E184E157600B7DEDF /* main.m */,\n\t\t\t\tCEEF0E30184E157600B7DEDF /* RFKeyboardToolbarDemo-Prefix.pch */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tCEEF0E47184E157600B7DEDF /* RFKeyboardToolbarTests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tCEEF0E4D184E157600B7DEDF /* RFKeyboardToolbarTests.m */,\n\t\t\t\tCEEF0E48184E157600B7DEDF /* Supporting Files */,\n\t\t\t);\n\t\t\tpath = RFKeyboardToolbarTests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tCEEF0E48184E157600B7DEDF /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tCEEF0E49184E157600B7DEDF /* RFKeyboardToolbarDemoTests-Info.plist */,\n\t\t\t\tCEEF0E4A184E157600B7DEDF /* InfoPlist.strings */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tCEEF0E6C184E9AED00B7DEDF /* RFKeyboardToolbar */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tCEEF0E6D184E9AED00B7DEDF /* RFKeyboardToolbar.h */,\n\t\t\t\tCEEF0E6E184E9AED00B7DEDF /* RFKeyboardToolbar.m */,\n\t\t\t\tCEEF0E6F184E9AED00B7DEDF /* RFToolbarButton.h */,\n\t\t\t\tCEEF0E70184E9AED00B7DEDF /* RFToolbarButton.m */,\n\t\t\t);\n\t\t\tname = RFKeyboardToolbar;\n\t\t\tpath = ../../RFKeyboardToolbar;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\tCEEF0E1E184E157600B7DEDF /* RFKeyboardToolbarDemo */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = CEEF0E51184E157600B7DEDF /* Build configuration list for PBXNativeTarget \"RFKeyboardToolbarDemo\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tCEEF0E1B184E157600B7DEDF /* Sources */,\n\t\t\t\tCEEF0E1C184E157600B7DEDF /* Frameworks */,\n\t\t\t\tCEEF0E1D184E157600B7DEDF /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = RFKeyboardToolbarDemo;\n\t\t\tproductName = RFKeyboardToolbar;\n\t\t\tproductReference = CEEF0E1F184E157600B7DEDF /* RFKeyboardToolbarDemo.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tCEEF0E17184E157600B7DEDF /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 0500;\n\t\t\t\tORGANIZATIONNAME = \"Rex Finn\";\n\t\t\t};\n\t\t\tbuildConfigurationList = CEEF0E1A184E157600B7DEDF /* Build configuration list for PBXProject \"RFKeyboardToolbarDemo\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = CEEF0E16184E157600B7DEDF;\n\t\t\tproductRefGroup = CEEF0E20184E157600B7DEDF /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\tCEEF0E1E184E157600B7DEDF /* RFKeyboardToolbarDemo */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\tCEEF0E1D184E157600B7DEDF /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tCEEF0E3B184E157600B7DEDF /* Images.xcassets in Resources */,\n\t\t\t\tCEEF0E2D184E157600B7DEDF /* InfoPlist.strings in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\tCEEF0E1B184E157600B7DEDF /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tCEEF0E39184E157600B7DEDF /* ViewController.m in Sources */,\n\t\t\t\tCEEF0E72184E9AED00B7DEDF /* RFToolbarButton.m in Sources */,\n\t\t\t\tCEEF0E33184E157600B7DEDF /* AppDelegate.m in Sources */,\n\t\t\t\tCEEF0E71184E9AED00B7DEDF /* RFKeyboardToolbar.m in Sources */,\n\t\t\t\tCEEF0E2F184E157600B7DEDF /* main.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXVariantGroup section */\n\t\tCEEF0E2B184E157600B7DEDF /* InfoPlist.strings */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tCEEF0E2C184E157600B7DEDF /* en */,\n\t\t\t);\n\t\t\tname = InfoPlist.strings;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tCEEF0E4A184E157600B7DEDF /* InfoPlist.strings */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tCEEF0E4B184E157600B7DEDF /* en */,\n\t\t\t);\n\t\t\tname = InfoPlist.strings;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\tCEEF0E4F184E157600B7DEDF /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tARCHS = \"$(ARCHS_STANDARD_INCLUDING_64_BIT)\";\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_SYMBOLS_PRIVATE_EXTERN = NO;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 7.0;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tCEEF0E50184E157600B7DEDF /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tARCHS = \"$(ARCHS_STANDARD_INCLUDING_64_BIT)\";\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = YES;\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 7.0;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tCEEF0E52184E157600B7DEDF /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;\n\t\t\t\tGCC_PRECOMPILE_PREFIX_HEADER = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"\";\n\t\t\t\tINFOPLIST_FILE = \"RFKeyboardToolbar/RFKeyboardToolbarDemo-Info.plist\";\n\t\t\t\tPRODUCT_NAME = RFKeyboardToolbarDemo;\n\t\t\t\tWRAPPER_EXTENSION = app;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tCEEF0E53184E157600B7DEDF /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;\n\t\t\t\tGCC_PRECOMPILE_PREFIX_HEADER = YES;\n\t\t\t\tGCC_PREFIX_HEADER = \"\";\n\t\t\t\tINFOPLIST_FILE = \"RFKeyboardToolbar/RFKeyboardToolbarDemo-Info.plist\";\n\t\t\t\tPRODUCT_NAME = RFKeyboardToolbarDemo;\n\t\t\t\tWRAPPER_EXTENSION = app;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\tCEEF0E1A184E157600B7DEDF /* Build configuration list for PBXProject \"RFKeyboardToolbarDemo\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tCEEF0E4F184E157600B7DEDF /* Debug */,\n\t\t\t\tCEEF0E50184E157600B7DEDF /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tCEEF0E51184E157600B7DEDF /* Build configuration list for PBXNativeTarget \"RFKeyboardToolbarDemo\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tCEEF0E52184E157600B7DEDF /* Debug */,\n\t\t\t\tCEEF0E53184E157600B7DEDF /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = CEEF0E17184E157600B7DEDF /* Project object */;\n}\n"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbarDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:RFKeyboardToolbarDemo.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbarTests/RFKeyboardToolbarDemoTests-Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>${EXECUTABLE_NAME}</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.rexfinn.${PRODUCT_NAME:rfc1034identifier}</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbarTests/RFKeyboardToolbarTests.m",
    "content": "//\n//  RFKeyboardToolbarTests.m\n//  RFKeyboardToolbarTests\n//\n//  Created by Rudd Fawcett on 12/3/13.\n//  Copyright (c) 2013 Rudd Fawcett. All rights reserved.\n//\n\n#import <XCTest/XCTest.h>\n\n@interface RFKeyboardToolbarTests : XCTestCase\n\n@end\n\n@implementation RFKeyboardToolbarTests\n\n- (void)setUp\n{\n    [super setUp];\n    // Put setup code here. This method is called before the invocation of each test method in the class.\n}\n\n- (void)tearDown\n{\n    // Put teardown code here. This method is called after the invocation of each test method in the class.\n    [super tearDown];\n}\n\n- (void)testExample\n{\n    XCTFail(@\"No implementation for \\\"%s\\\"\", __PRETTY_FUNCTION__);\n}\n\n@end\n"
  },
  {
    "path": "RFKeyboardToolbarDemo/RFKeyboardToolbarTests/en.lproj/InfoPlist.strings",
    "content": "/* Localized versions of Info.plist keys */\n\n"
  }
]