From 6d9089e5145698aaf379a0c30d4ab694f0d376f2 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 4 Nov 2008 00:34:13 +0000 Subject: [PATCH] add some missed type changes --- macosx/GroupsWindowController.m | 6 +++--- macosx/TorrentTableView.m | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/macosx/GroupsWindowController.m b/macosx/GroupsWindowController.m index 995a736cd..3406f6c2e 100644 --- a/macosx/GroupsWindowController.m +++ b/macosx/GroupsWindowController.m @@ -82,7 +82,7 @@ GroupsWindowController * fGroupsWindowInstance = nil; - (id) tableView: (NSTableView *) tableView objectValueForTableColumn: (NSTableColumn *) tableColumn row: (NSInteger) row { GroupsController * groupsController = [GroupsController groups]; - int groupsIndex = [groupsController indexForRow: row]; + NSInteger groupsIndex = [groupsController indexForRow: row]; NSString * identifier = [tableColumn identifier]; if ([identifier isEqualToString: @"Color"]) @@ -126,7 +126,7 @@ GroupsWindowController * fGroupsWindowInstance = nil; } - (NSDragOperation) tableView: (NSTableView *) tableView validateDrop: (id ) info - proposedRow: (int) row proposedDropOperation: (NSTableViewDropOperation) operation + proposedRow: (NSInteger) row proposedDropOperation: (NSTableViewDropOperation) operation { NSPasteboard * pasteboard = [info draggingPasteboard]; if ([[pasteboard types] containsObject: GROUP_TABLE_VIEW_DATA_TYPE]) @@ -138,7 +138,7 @@ GroupsWindowController * fGroupsWindowInstance = nil; return NSDragOperationNone; } -- (BOOL) tableView: (NSTableView *) tableView acceptDrop: (id ) info row: (int) newRow +- (BOOL) tableView: (NSTableView *) tableView acceptDrop: (id ) info row: (NSInteger) newRow dropOperation: (NSTableViewDropOperation) operation { NSPasteboard * pasteboard = [info draggingPasteboard]; diff --git a/macosx/TorrentTableView.m b/macosx/TorrentTableView.m index 11ba70245..234b0608b 100644 --- a/macosx/TorrentTableView.m +++ b/macosx/TorrentTableView.m @@ -523,7 +523,7 @@ //option-command-f will focus the filter bar's search field - (void) keyDown: (NSEvent *) event { - unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0]; + const unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0]; if (firstChar == 'f' && [event modifierFlags] & NSAlternateKeyMask && [event modifierFlags] & NSCommandKeyMask) [fController focusFilterField];