Browse Source

Updates: Conform to defined protocols

The protocols were already defined, but it wasn't necessary for the delegate to actually conform to the protocol.

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Christopher Loessl 11 years ago
parent
commit
8fa92c152b
2 changed files with 4 additions and 4 deletions
  1. 2 2
      Sources/VLCDropboxController.h
  2. 2 2
      Sources/VLCGoogleDriveController.h

+ 2 - 2
Sources/VLCDropboxController.h

@@ -12,7 +12,7 @@
 
 #import <DropboxSDK/DropboxSDK.h>
 
-@protocol VLCDropboxController
+@protocol VLCDropboxController <NSObject>
 @required
 - (void)mediaListUpdated;
 
@@ -27,7 +27,7 @@
 
 @interface VLCDropboxController : NSObject <DBRestClientDelegate, DBSessionDelegate, DBNetworkRequestDelegate>
 
-@property (nonatomic, retain) id delegate;
+@property (nonatomic, weak) id<VLCDropboxController> delegate;
 @property (nonatomic, readonly) NSArray *currentListFiles;
 @property (nonatomic, readonly) BOOL sessionIsLinked;
 @property (nonatomic, readonly) NSInteger numberOfFilesWaitingToBeDownloaded;

+ 2 - 2
Sources/VLCGoogleDriveController.h

@@ -15,7 +15,7 @@
 #import "GTMOAuth2ViewControllerTouch.h"
 #import "VLCGoogleDriveConstants.h"
 
-@protocol VLCGoogleDriveController
+@protocol VLCGoogleDriveController <NSObject>
 @required
 - (void)mediaListUpdated;
 
@@ -29,7 +29,7 @@
 
 @interface VLCGoogleDriveController : NSObject
 
-@property (nonatomic, retain) id delegate;
+@property (nonatomic, weak) id<VLCGoogleDriveController> delegate;
 @property (nonatomic, readonly) NSArray *currentListFiles;
 @property (nonatomic, readwrite) BOOL isAuthorized;
 @property (nonatomic, retain) GTLServiceDrive *driveService;