[vlc-commits] macosx: Fix runtime error on 10.7

Marvin Scholz git at videolan.org
Wed Sep 7 13:27:42 CEST 2016


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed Sep  7 11:28:58 2016 +0200| [e043f2ea2ad3811f5a877d8f98bfa79fa63eeff7] | committer: Marvin Scholz

macosx: Fix runtime error on 10.7

On 10.7 and below it's not allowed to have a weak
reference to an NSWindow (and some other classes)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e043f2ea2ad3811f5a877d8f98bfa79fa63eeff7
---

 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;



More information about the vlc-commits mailing list