Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Engine methods now take an extra parameter: successBlock. This block takes an id and returns an id. - -sendRequest:… methods now return an id instead of an NSString. This id is the JSON returned from the API, parsed for ObjC consumption. - All calls to -sendRequest:… are wrapped in a call to successBlock(). - When calling engine methods, we populate the successBlock parameter with what we want to be executed on successful completion of the call. - All the above is in place of using delegation. May (should?) eventually lead to the fiery death of UAGithubEngineDelegate.
- Loading branch information
Owain R Hunt
committed
Oct 31, 2011
1 parent
ab44358
commit bd9b849
Showing
2 changed files
with
17 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters