Search
lxdream.org :: lxdream/src/cocoaui/cocoa_win.m :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoa_win.m
changeset 1298:d0eb2307b847
prev1098:4f2750753a6c
author nkeynes
date Fri May 29 18:47:05 2015 +1000 (8 years ago)
permissions -rw-r--r--
last change Fix test case
file annotate diff log raw
1.1 --- a/src/cocoaui/cocoa_win.m Sun Jan 31 18:36:06 2010 +1000
1.2 +++ b/src/cocoaui/cocoa_win.m Fri May 29 18:47:05 2015 +1000
1.3 @@ -141,7 +141,7 @@
1.4 isGrabbed = NO;
1.5 video = (LxdreamVideoView *)video_osx_create_drawable();
1.6 [video setFrameOrigin: NSMakePoint(0.0,STATUSBAR_HEIGHT)];
1.7 - [video setDelegate: self];
1.8 + [video setDelegate: (id)self];
1.9
1.10 status =
1.11 [[NSTextField alloc] initWithFrame: NSMakeRect(0.0,0.0,videoRect.size.width,STATUS_TEXT_HEIGHT)];
1.12 @@ -159,13 +159,13 @@
1.13 [self setContentBorderThickness: STATUSBAR_HEIGHT forEdge: NSMinYEdge];
1.14
1.15 // Share the app delegate for the purposes of keeping it in one place
1.16 - [self setDelegate: [NSApp delegate]];
1.17 + [self setDelegate: (id)[NSApp delegate]];
1.18 [self setContentMinSize: contentRect.size];
1.19 [self setAcceptsMouseMovedEvents: YES];
1.20 [self updateTitle];
1.21
1.22 NSToolbar *toolbar = [[NSToolbar alloc] initWithIdentifier: @"LxdreamToolbar"];
1.23 - [toolbar setDelegate: [[LxdreamToolbarDelegate alloc] init]];
1.24 + [toolbar setDelegate: (id)[[LxdreamToolbarDelegate alloc] init]];
1.25 [toolbar setDisplayMode: NSToolbarDisplayModeIconOnly];
1.26 [toolbar setSizeMode: NSToolbarSizeModeSmall];
1.27 [toolbar setSelectedItemIdentifier: @"Pause"];
.