[vlc-commits] macosx: Switch to strong outlets for NSWindow and NSPanel

David Fuhrmann git at videolan.org
Sat Apr 22 16:35:53 CEST 2017


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Apr 22 16:01:42 2017 +0200| [d70862d3bdc2620767f0fb7c549876ca65c1dae4] | committer: David Fuhrmann

macosx: Switch to strong outlets for NSWindow and NSPanel

OS X 10.7 does not support weak outlets for those objects.

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

 modules/gui/macosx/VLCBookmarksWindowController.h | 2 +-
 modules/gui/macosx/VLCOpenWindowController.h      | 2 +-
 modules/gui/macosx/VLCOutput.h                    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/macosx/VLCBookmarksWindowController.h b/modules/gui/macosx/VLCBookmarksWindowController.h
index 365cd7b6cc..6550bc9bbd 100644
--- a/modules/gui/macosx/VLCBookmarksWindowController.h
+++ b/modules/gui/macosx/VLCBookmarksWindowController.h
@@ -36,7 +36,7 @@
 @property (readwrite, weak) IBOutlet NSTableView *dataTable;
 
 /* edit window */
- at property (readwrite, weak) IBOutlet NSWindow *editBookmarksWindow;
+ at property (readwrite) IBOutlet NSWindow *editBookmarksWindow;
 @property (readwrite, weak) IBOutlet NSButton *editOKButton;
 @property (readwrite, weak) IBOutlet NSButton *editCancelButton;
 @property (readwrite, weak) IBOutlet NSTextField *editNameLabel;
diff --git a/modules/gui/macosx/VLCOpenWindowController.h b/modules/gui/macosx/VLCOpenWindowController.h
index c481d78f38..233dd34f2c 100644
--- a/modules/gui/macosx/VLCOpenWindowController.h
+++ b/modules/gui/macosx/VLCOpenWindowController.h
@@ -129,7 +129,7 @@
 /* open subtitle file */
 @property (readwrite, weak) IBOutlet NSButton *fileSubCheckbox;
 @property (readwrite, weak) IBOutlet NSButton *fileSubSettingsButton;
- at property (readwrite, weak) IBOutlet NSPanel *fileSubSheet;
+ at property (readwrite) IBOutlet NSPanel *fileSubSheet;
 @property (readwrite, weak) IBOutlet NSTextField *fileSubPathLabel;
 @property (readwrite, weak) IBOutlet NSTextField *fileSubPathTextField;
 @property (readwrite, weak) IBOutlet NSImageView *fileSubIconView;
diff --git a/modules/gui/macosx/VLCOutput.h b/modules/gui/macosx/VLCOutput.h
index cbee1a51cb..0af25488fe 100644
--- a/modules/gui/macosx/VLCOutput.h
+++ b/modules/gui/macosx/VLCOutput.h
@@ -28,7 +28,7 @@
 
 @interface VLCOutput : NSObject
 
- at property (readwrite, weak) IBOutlet NSPanel *outputSheet;
+ at property (readwrite) IBOutlet NSPanel *outputSheet;
 @property (readwrite, weak) IBOutlet NSButton *okButton;
 
 @property (readwrite, weak) IBOutlet NSBox *optionsBox;



More information about the vlc-commits mailing list