forked from alinebee/Boxer
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathBBAppDelegate+AppExporting.h
26 lines (21 loc) · 1.06 KB
/
BBAppDelegate+AppExporting.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
// BBAppDelegate+AppExporting.h
// Boxer Bundler
//
// Created by Alun Bestor on 25/08/2012.
// Copyright (c) 2012 Alun Bestor. All rights reserved.
//
#import "BBAppDelegate.h"
@interface BBAppDelegate (AppExporting)
//Begin asynchronously creating a new app at the specified destination URL.
//completionHandler is called upon completion, with the resulting URL and nil (if successful)
//or nil and an error representing the reason for failure (if unsuccessful).
- (void) createAppAtDestinationURL: (NSURL *)destinationURL
completion: (void(^)(NSURL *appURL, NSError *error))completionHandler;
//Synchronously create a new app at the specified destination URL, using our current parameters.
//Returns the URL of the generated app, or nil and populates outError upon failure.
//This method can safely overwrite an existing app at destinationURL; if the app creation fails,
//any existing app will be left untouched.
- (NSURL *) createAppAtDestinationURL: (NSURL *)destinationURL
error: (NSError **)outError;
@end