Cleans up declarations in window_cocoa.mm removing unnecessary iVars declarations...
authorValeriy Van <github@w7software.com>
Mon, 29 Aug 2016 18:55:59 +0000 (21:55 +0300)
committerValeriy Van <github@w7software.com>
Mon, 29 Aug 2016 18:55:59 +0000 (21:55 +0300)
modules/highgui/src/window_cocoa.mm

index a653cd3..a1befc3 100644 (file)
@@ -82,42 +82,26 @@ static NSAutoreleasePool *pool = nil;
 static NSMutableDictionary *windows = nil;
 static bool wasInitialized = false;
 
-@interface CVView : NSView {
-    NSImage *image;
-}
-@property(retain) NSImage *image;
+@interface CVView : NSView
+@property(strong) NSImage *image;
 - (void)setImageData:(CvArr *)arr;
 @end
 
-@interface CVSlider : NSView {
-    NSSlider *slider;
-    NSTextField *name;
-    int *value;
-    void *userData;
-    CvTrackbarCallback callback;
-    CvTrackbarCallback2 callback2;
-}
-@property(retain) NSSlider *slider;
-@property(retain) NSTextField *name;
+@interface CVSlider : NSView
+@property(strong) NSSlider *slider;
+@property(strong) NSTextField *name;
 @property(assign) int *value;
 @property(assign) void *userData;
 @property(assign) CvTrackbarCallback callback;
 @property(assign) CvTrackbarCallback2 callback2;
 @end
 
-@interface CVWindow : NSWindow {
-    NSMutableDictionary *sliders;
-    CvMouseCallback mouseCallback;
-    void *mouseParam;
-    BOOL autosize;
-    BOOL firstContent;
-    int status;
-}
+@interface CVWindow : NSWindow
 @property(assign) CvMouseCallback mouseCallback;
 @property(assign) void *mouseParam;
 @property(assign) BOOL autosize;
 @property(assign) BOOL firstContent;
-@property(retain) NSMutableDictionary *sliders;
+@property(strong) NSMutableDictionary *sliders;
 @property(readwrite) int status;
 - (CVView *)contentView;
 - (void)cvSendMouseEvent:(NSEvent *)event type:(int)type flags:(int)flags;