Skip to content

Instantly share code, notes, and snippets.

@achalaggarwal
Created September 7, 2011 15:42
Show Gist options
  • Select an option

  • Save achalaggarwal/1200923 to your computer and use it in GitHub Desktop.

Select an option

Save achalaggarwal/1200923 to your computer and use it in GitHub Desktop.
GCChute.update()
GCResponse *response = [GCChute findById:29];
GCChute *chute = [response object];
[chute setName:@"NewName"];
//Synchronous Request
if ([chute update]) {
//Updated
}
//Asynchronous Request
[chute updateInBackgroundWithCompletion:^(BOOL value) {
if (value) {
//Updated
}
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment