Skip to content

Instantly share code, notes, and snippets.

@liscio
Forked from ddribin/gist:43875
Created January 6, 2009 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liscio/43876 to your computer and use it in GitHub Desktop.
Save liscio/43876 to your computer and use it in GitHub Desktop.
%start PubSubRefresh::Idle
%class PubSubRefresh
%header PubSubRefresh.h
%map PubSubRefreshMap
%%
Idle
{
Start
[startRefresh() == NO]
nil { showErrorUI(); }
Start
push(Refreshing) { }
ErrorHappened nil { showErrorUI(); }
}
Refreshing
Entry
{
showRefreshingProgress();
}
Exit
{
dismissRefreshProgress();
cleanupRefreshJunk();
}
{
ErrorHappened pop()/ErrorHappened {}
Success pop() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment