]> granicus.if.org Git - handbrake/commitdiff
MacGui: fix the build on Xcode 6.4 for real
authorDamiano Galassi <damiog@gmail.com>
Thu, 8 Oct 2015 11:47:28 +0000 (13:47 +0200)
committerDamiano Galassi <damiog@gmail.com>
Thu, 8 Oct 2015 11:47:28 +0000 (13:47 +0200)
macosx/HBPreviewController.m

index 642661750298bf5a20a08100ee719b202077155c..e3ebde36810f030f79c70af012e58be047c4407a 100644 (file)
@@ -79,7 +79,7 @@ typedef enum ViewMode : NSUInteger {
 
 - (void)windowDidLoad
 {
-    self.window.contentView.wantsLayer = YES;
+    [self.window.contentView setWantsLayer:YES];
 
     self.windowCenterPoint = [self centerPoint];
 
@@ -245,7 +245,7 @@ typedef enum ViewMode : NSUInteger {
 - (void)resizeWindowForViewSize:(NSSize)viewSize animate:(BOOL)performAnimation
 {
     NSWindow *window = self.window;
-    NSSize currentSize = window.contentView.frame.size;
+    NSSize currentSize = [window.contentView frame].size;
     NSRect frame = window.frame;
 
     // Calculate border around content region of the frame