Skip to content

Commit 0a57376

Browse files
committed
Compilation error fixed, @Class CCPackage added to manager delegate.
Some renaming and comments updated.
1 parent c4e9f0e commit 0a57376

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

cocos2d/CCPackageManager.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
/**
3333
* The queue on which unzipping of packages is achieved, default is DISPATCH_QUEUE_PRIORITY_LOW.
34-
* On iOS 5.0 and MacOS 10.7 and below you have to claim ownership of the queue if it's not a global one.
34+
* On iOS 5.0, MacOS 10.7 and below you have to get rid of the queue after use if it's not a global one.
3535
*/
3636
#if OS_OBJECT_HAVE_OBJC_SUPPORT == 1
3737
@property (nonatomic, strong) dispatch_queue_t unzippingQueue;
@@ -52,11 +52,12 @@
5252
/**
5353
* Persists all packages to user defaults. Save often! Suggestion is to save on Application will terminate and will enter background.
5454
*/
55-
- (void)storePackages;
55+
- (void)savePackages;
5656

5757

5858
/**
59-
* Returns a package immediately which will be downloaded, unzipped and installed asynchronously to the Packages folder in /Library/Caches (default)
59+
* The all inclsuive method to add a package to your app.
60+
* Returns a new package immediately which will be downloaded, unzipped and installed asynchronously to the Packages folder in /Library/Caches (default)
6061
*
6162
* If a package with the same name and resolution already exists it won't be rescheduled for downloading.
6263
* If you need to update a package by re-downloading it you will have to delete it first.

cocos2d/CCPackageManager.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ - (void)storePackagesAndPauseDownloads
128128

129129
[_downloadManager pauseAllDownloads];
130130

131-
[self storePackages];
131+
[self savePackages];
132132
}
133133

134-
- (void)storePackages
134+
- (void)savePackages
135135
{
136136
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
137137
NSMutableArray *packagesToSave = [NSMutableArray arrayWithCapacity:_packages.count];

cocos2d/CCPackageManagerDelegate.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#import <Foundation/Foundation.h>
22

3+
@class CCPackage;
4+
35
@protocol CCPackageManagerDelegate <NSObject>
46

57
@required

cocos2d/CCPackageUnzipper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
/**
2525
* The queue on which unzipping of packages is achieved
26+
* On iOS 5.0, MacOS 10.7 and below you have to get rid of the queue after use if it's not a global one.
2627
*/
2728
#if OS_OBJECT_HAVE_OBJC_SUPPORT == 1
2829
@property (nonatomic, strong, readonly) dispatch_queue_t queue;

0 commit comments

Comments
 (0)