summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreviewController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-10-08 13:47:28 +0200
committerDamiano Galassi <[email protected]>2015-10-08 13:47:28 +0200
commit9c480e529a0c36a03de838e62dd196569fcd18a9 (patch)
tree9b1fa0339749d06852c61ac3c29d0088dc36a6dc /macosx/HBPreviewController.m
parent6160d599a8b3ec6753ad8c2d53900d060ad2b3cd (diff)
MacGui: fix the build on Xcode 6.4 for real
Diffstat (limited to 'macosx/HBPreviewController.m')
-rw-r--r--macosx/HBPreviewController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m
index 642661750..e3ebde368 100644
--- a/macosx/HBPreviewController.m
+++ b/macosx/HBPreviewController.m
@@ -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