summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-25 15:17:16 -0400
committerPietro Gagliardi <[email protected]>2014-08-25 15:17:16 -0400
commitf6d7797fd6225ff0e7aa9507858dd8e5496b9559 (patch)
treef418a16383ccc3343b0d3241690ae9dcdba701f1
parent14100cd1722a258a20ee825ee8cc4bbfd32a9a06 (diff)
Settled some strict typing issues on the Mac OS X backend.
-rw-r--r--redo/table_darwin.m4
1 files 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