project_files/HedgewarsMobile/Classes/MapPreviewButtonView.h
branchios-develop
changeset 12872 00215a7ec5f5
parent 10108 c68cf030eded
--- a/project_files/HedgewarsMobile/Classes/MapPreviewButtonView.h	Fri Dec 29 22:37:31 2017 +0100
+++ b/project_files/HedgewarsMobile/Classes/MapPreviewButtonView.h	Sat Dec 30 01:22:11 2017 +0100
@@ -23,25 +23,25 @@
 
 @protocol MapPreviewViewDelegate <NSObject>
 
--(void) turnOnWidgets;
--(void) setMaxLabelText:(NSString *)string;
--(NSDictionary *)getDataForEngine;
+- (void)turnOnWidgets;
+- (void)setMaxLabelText:(NSString *)string;
+- (NSDictionary *)getDataForEngine;
 
 @end
 
 @interface MapPreviewButtonView : UIButton {
-    id<MapPreviewViewDelegate> delegate;
+    id<MapPreviewViewDelegate> __weak delegate;
     TCPsocket sd, csd;
     NSInteger maxHogs;
 }
 
-@property (nonatomic,assign) id<MapPreviewViewDelegate> delegate;
+@property (nonatomic,weak) id<MapPreviewViewDelegate> delegate;
 
--(void) setImageRounded:(UIImage *)image forState:(UIControlState) controlState;
--(void) setImageRounded:(UIImage *)image;
--(void) updatePreviewWithSeed:(NSString *)seed;
--(void) updatePreviewWithFile:(NSString *)filePath;
--(void) turnOnWidgets;
--(NSDictionary *)getDataForEngine;
+- (void)setImageRounded:(UIImage *)image forState:(UIControlState)controlState;
+- (void)setImageRounded:(UIImage *)image;
+- (void)updatePreviewWithSeed:(NSString *)seed;
+- (void)updatePreviewWithFile:(NSString *)filePath;
+- (void)turnOnWidgets;
+- (NSDictionary *)getDataForEngine;
 
 @end