From acb62692e4477c8999fb44cbad838cd307dfe577 Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Mon, 29 Aug 2016 21:55:59 +0300 Subject: [PATCH] Cleans up declarations in window_cocoa.mm removing unnecessary iVars declarations and changing retain property attribute to strong --- modules/highgui/src/window_cocoa.mm | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/modules/highgui/src/window_cocoa.mm b/modules/highgui/src/window_cocoa.mm index a653cd3..a1befc3 100644 --- a/modules/highgui/src/window_cocoa.mm +++ b/modules/highgui/src/window_cocoa.mm @@ -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; -- 2.7.4