summaryrefslogtreecommitdiff
path: root/frontends/cocoa/LocalHistoryController.m
diff options
context:
space:
mode:
authorSven Weidauer <sven@5sw.de>2017-06-05 10:47:34 +0200
committerSven Weidauer <sven@5sw.de>2017-06-05 10:51:19 +0200
commit3ee40a10b123c36be3e29602767840a7a71aaafa (patch)
tree64123d0bf6a6cf5a5a4c1fd8349756db68e09483 /frontends/cocoa/LocalHistoryController.m
parentce4e059ea67cee7f35b4b810a4387f343fa74650 (diff)
downloadnetsurf-3ee40a10b123c36be3e29602767840a7a71aaafa.tar.gz
netsurf-3ee40a10b123c36be3e29602767840a7a71aaafa.tar.bz2
Fix up cocoa frontend.
- Convert to ARC - Fix crash due to endless responder chain recursion - Update makefile to find openssl installed via home-brew - Fix most compiler warnings
Diffstat (limited to 'frontends/cocoa/LocalHistoryController.m')
-rw-r--r--frontends/cocoa/LocalHistoryController.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/frontends/cocoa/LocalHistoryController.m b/frontends/cocoa/LocalHistoryController.m
index b3992b614..97c592d43 100644
--- a/frontends/cocoa/LocalHistoryController.m
+++ b/frontends/cocoa/LocalHistoryController.m
@@ -27,7 +27,7 @@
@synthesize browser;
@synthesize history;
-- initWithBrowser: (BrowserView *) bw;
+- (instancetype)initWithBrowser: (BrowserView *) bw
{
if ((self = [super initWithWindowNibName: @"LocalHistoryPanel"]) == nil) return nil;
@@ -36,7 +36,7 @@
return self;
}
-- (void) attachToView: (NSView *) view;
+- (void) attachToView: (NSView *) view
{
NSDisableScreenUpdates();
@@ -87,22 +87,22 @@
NSEnableScreenUpdates();
}
-- (void) detach;
+- (void) detach
{
[(ArrowWindow *)[self window] detach];
}
-- (void) windowDidLoad;
+- (void) windowDidLoad
{
[history setBrowser: browser];
}
-- (void) redraw;
+- (void) redraw
{
[history setNeedsDisplay: YES];
}
-- (void) keyDown: (NSEvent *)theEvent;
+- (void) keyDown: (NSEvent *)theEvent
{
unichar key = [[theEvent characters] characterAtIndex: 0];
switch (key) {