Fixed comment view's comment font and sizing. Hooked up newly added comment's delete button and removal animation. Resized comments. Fixed left padding on noneditable comment. Fixed spacing of sort buttons, positioning next to label, and new comment button padding and sizing.
Added Hashing of pdf file, which is then used as the url identifier to the server. Added a Core Foundation based file hashing library which does not have memory issues even with larger files.
If the pdf file has not been seen by the system before, the get request 404's and we send a post request with the new file's details, and then load as normal on getting back the now-saved details of the file.
Added basic http authentication to all requests.
CommentsViewController is added as UITextViewDelegate and implements textViewDidEndEditing to trigger KVO change notification which is sent to server and the model is then updated.
Added a blocks based UIAlertView category which obviates the need for delegate messiness. Added Confirm dialogs on tapping delete comment and annotation buttons.
When a user creates a comment, they vote on their own comment.
Hooked up sort by date and votes buttons. We now sort them and relayout boxes as expected. Fixed a date parsing issue in JSONModel's value transformers. It was not accounting for fractional second formatted dates, now it can handle both formats. This is for decoding JSON only, which is ok because the dates we use are read only. Fractional seconds are not accounted for when encoding to JSON.
Updated detail view's navigation bar title to show the current file name.
Fixed some master and detail labels. Removed add and edit buttons from the master tableview. *Actually* committed the JSONModel value transformer date format changes.