Add completion callback to installBundle:

This commit is contained in:
Allan Odgaard
2013-04-23 18:51:16 +07:00
parent 93a1c37e47
commit cdb75619ca
4 changed files with 13 additions and 5 deletions

View File

@@ -206,7 +206,7 @@ static bool is_installed (oak::uuid_t const& uuid)
if(bundleUUID == (*bundle)->uuid())
{
[NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(checkIfBundleIsInstalled:) userInfo:[grammar objectForKey:@"uuid"] repeats:YES];
[[BundlesManager sharedInstance] installBundle:*bundle];
[[BundlesManager sharedInstance] installBundle:*bundle completionHandler:nil];
[installingBundleActivityTextField bind:NSValueBinding toObject:[BundlesManager sharedInstance] withKeyPath:@"activityText" options:nil];
[installingBundleProgressIndicator bind:NSValueBinding toObject:[BundlesManager sharedInstance] withKeyPath:@"progress" options:nil];
[installingBundleProgressIndicator bind:NSIsIndeterminateBinding toObject:[BundlesManager sharedInstance] withKeyPath:@"determinateProgress" options:@{ NSValueTransformerNameBindingOption: @"NSNegateBoolean" }];