Settled some strict typing issues on the Mac OS X backend.

This commit is contained in:
Pietro Gagliardi 2014-08-25 15:17:16 -04:00
parent 14100cd172
commit f6d7797fd6
1 changed files with 2 additions and 2 deletions

View File

@ -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