From f6d7797fd6225ff0e7aa9507858dd8e5496b9559 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 25 Aug 2014 15:17:16 -0400 Subject: [PATCH] Settled some strict typing issues on the Mac OS X backend. --- redo/table_darwin.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redo/table_darwin.m b/redo/table_darwin.m index a8c85be..5e7a9e6 100644 --- a/redo/table_darwin.m +++ b/redo/table_darwin.m @@ -57,10 +57,10 @@ - (void)tableView:(NSTableView *)view setObjectValue:(id)value forTableColumn:(NSTableColumn *)col row:(NSInteger)row { intptr_t colnum; + NSNumber *number = (NSNumber *) value; // thanks to mikeash in irc.freenode.net/#macdev colnum = ((goTableColumn *) col)->gocolnum; - // TODO verify type of value - goTableDataSource_toggled(self->gotable, (intptr_t) row, colnum, [value boolValue]); + goTableDataSource_toggled(self->gotable, (intptr_t) row, colnum, [number boolValue]); } - (void)tableViewSelectionDidChange:(NSNotification *)note