CodaFi/CFIDictaphonicWindow — pull request #2 by CodaFi (2013-10-20 21:45:08+00:00)
Title: Refactor

@mralexgray I've pulled what I like out of your pull request and refactored the project in this pull request. There were quite a few things to change, notably:

- The styling of code in the pull request was all over the place. I've cleaned it up and made it more consistent. I try to stick as close the [GitHub style guide](https://github.com/github/objective-c-conventions) as possible with a personal addendum about block types.
- The imports you removed have been added back. They exist to keep programmers from accidentally using the control in situations where Cocoa hasn't been implicitly or explicitly linked against, or when the framework doesn't exist. If this were an actual project, then removing them would be completely appropriate, but this is just a control.
- `-[CFIDictaphonicWindow forceDictation]` was renamed to `-[CFIDictaphonicWindow startDictation]`
- The case for multiple windows in the responder chain hack has been optimized for.
- Initializers for the window have been refactored into a common initializer.
- The dictionary-controller is too dependant on your own implementation. There is nothing stopping you from subclassing the window for your own example and binding that way.
- The project is now MIT licensed

What I couldn't do was get your example changes to build right under this branch. I recommend either pulling these changes in and rebuilding the example, or making a new pull request.