List updates in a simpler form

This commit is contained in:
Andrew Naylor 2015-08-25 02:43:15 +08:00
parent 934a597415
commit b3c64f7514
3 changed files with 6 additions and 6 deletions

View file

@ -14,7 +14,10 @@ struct ListUpdatesCommand: CommandType {
switch mode {
case .Arguments:
let updateController = CKUpdateController.sharedUpdateController()
print(updateController.availableUpdates())
let updates = updateController.availableUpdates() as! [CKUpdate]
for update in updates {
println("\(update.itemIdentifier) \(update.title) \(update.actionParams)")
}
default:
break
}

View file

@ -4,10 +4,6 @@
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
#import "NSSecureCoding.h"
@class NSDate, NSDictionary, NSMutableDictionary, NSNumber, NSString, SSPurchase;
@interface CKUpdate : NSObject <NSSecureCoding>
@ -19,7 +15,7 @@
+ (BOOL)supportsSecureCoding;
@property(nonatomic) long long softwareUpdateState; // @synthesize softwareUpdateState=_softwareUpdateState;
@property(readonly) NSDictionary *dictionary; // @synthesize dictionary=_dictionary;
- (void).cxx_destruct;
//- (void).cxx_destruct;
@property(readonly, nonatomic) NSString *autoUpdateAbortReason;
@property(nonatomic) BOOL hasBeenSeenByUser;
@property(readonly, nonatomic) BOOL didFailToAutoInstall;

View file

@ -18,6 +18,7 @@
#import "CKDownloadQueueClient.h"
#import "CKPurchaseController.h"
#import "CKSoftwareMap.h"
#import "CKUpdate.h"
#import "CKUpdateController.h"
#import "SSDownload.h"