[vlc-devel] [PATCH] macosx: Fix runtime error on 10.7

Marvin Scholz epirat07 at gmail.com
Wed Sep 7 11:31:03 CEST 2016


On 10.7 and below it's not allowed to have a weak
reference to an NSWindow (and some other classes)
---
 modules/gui/macosx/VLCMainWindow.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/VLCMainWindow.h b/modules/gui/macosx/VLCMainWindow.h
index 940b7d9..06fbc48 100644
--- a/modules/gui/macosx/VLCMainWindow.h
+++ b/modules/gui/macosx/VLCMainWindow.h
@@ -73,7 +73,7 @@ typedef enum {
 @property (readwrite, weak) IBOutlet NSButton           *podcastRemoveButton;
 
 // Podcast Subscribe Window outlets
- at property (readwrite, weak) IBOutlet NSWindow           *podcastSubscribeWindow;
+ at property (readwrite)       IBOutlet NSWindow           *podcastSubscribeWindow;
 @property (readwrite, weak) IBOutlet NSTextField        *podcastSubscribeTitle;
 @property (readwrite, weak) IBOutlet NSTextField        *podcastSubscribeSubtitle;
 @property (readwrite, weak) IBOutlet NSTextField        *podcastSubscribeUrlField;
@@ -81,7 +81,7 @@ typedef enum {
 @property (readwrite, weak) IBOutlet NSButton           *podcastSubscribeCancelButton;
 
 // Podcast Unsubscribe Window outlets
- at property (readwrite, weak) IBOutlet NSWindow           *podcastUnsubscribeWindow;
+ at property (readwrite)       IBOutlet NSWindow           *podcastUnsubscribeWindow;
 @property (readwrite, weak) IBOutlet NSTextField        *podcastUnsubscirbeTitle;
 @property (readwrite, weak) IBOutlet NSTextField        *podcastUnsubscribeSubtitle;
 @property (readwrite, weak) IBOutlet NSPopUpButton      *podcastUnsubscribePopUpButton;
-- 
2.7.4 (Apple Git-66)



More information about the vlc-devel mailing list