Alfresco/alfresco-ios-sdk — pull request #125 by pwschmidt (2013-03-28 09:40:08+00:00)
Title: MOBSDK-568

pending site requests are converted into sites. Primarily this is achieved by querying the cache of allSites for the shortname of the pending site request. In most cases, this should suffice, as the API calls are daisy-chained - with the allSites call first and the pending sites last.
On the offchance that the site cannot be found in the allsites cache - then API calls are made to get the site through the shortname (retrieveSiteWithShortName).

I also consolidated the nested 4-way API call into one method.