Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier to read setup code #9

Open
MattesGroeger opened this issue Jan 27, 2013 · 0 comments
Open

Easier to read setup code #9

MattesGroeger opened this issue Jan 27, 2013 · 0 comments
Milestone

Comments

@MattesGroeger
Copy link
Owner

We could simplify creation by using macros and convenience methods:

id group1 = sequentialGroup();
id group2 = sequentialAutoStartGroup();
id group3 = concurrentGroup();
id group4 = concurrentAutoStartGroup();

[group1 addCommand:[[DelayCommand alloc] initWithDelayInSeconds:1]];
[group1 addCommand:group3];
[group1 addBlockCommand:^(CommandCallback complete)
{
    NSLog(@"block command executed");
    complete();
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant