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.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.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.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.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"];