From 83daf610090fdc4938e2765179e8b148dd362039 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 27 Jun 2008 06:08:12 +0000 Subject: [PATCH] cleanup for the removal of the ip sort function --- macosx/InfoWindowController.m | 2 +- macosx/PrefsController.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 46df46c76..d0fea83c9 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -1592,7 +1592,7 @@ typedef enum if (useSecond) { NSSortDescriptor * secondDescriptor = [[NSSortDescriptor alloc] initWithKey: @"IP" ascending: asc - selector: @selector(compareFinder:)]; + selector: @selector(compareNumeric:)]; [descriptors addObject: secondDescriptor]; [secondDescriptor release]; } diff --git a/macosx/PrefsController.m b/macosx/PrefsController.m index cd3a3a8c2..fbaaa19a7 100644 --- a/macosx/PrefsController.m +++ b/macosx/PrefsController.m @@ -947,8 +947,8 @@ [oldDict objectForKey: @"Allow"], @"Allow", nil]; [fRPCAccessArray replaceObjectAtIndex: row withObject: newDict]; - NSSortDescriptor * descriptor = [[[NSSortDescriptor alloc] initWithKey: @"IP" ascending: YES selector: @selector(compareIP:)] - autorelease]; + NSSortDescriptor * descriptor = [[[NSSortDescriptor alloc] initWithKey: @"IP" ascending: YES + selector: @selector(compareNumeric:)] autorelease]; [fRPCAccessArray sortUsingDescriptors: [NSArray arrayWithObject: descriptor]]; } else -- 2.40.0