From 41355f1754197328c4623883a980cf708dc35097 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sat, 15 Nov 2008 15:54:33 +0000 Subject: Improvement to new favourite selection over r182 - now selects the new favourite whatever the table sort order. --- TableDocument.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TableDocument.m b/TableDocument.m index e54d0c9a..968a9480 100644 --- a/TableDocument.m +++ b/TableDocument.m @@ -360,7 +360,7 @@ NSString *TableDocumentFavoritesControllerFavoritesDidChange = @"TableDocumentFa selectedFavorite = [favoriteName retain]; [self didChangeValueForKey:@"favorites"]; - [favoritesController setSelectionIndex:[favorites count]-1]; + [favoritesController setSelectedObjects:[NSArray arrayWithObject:newFavorite]]; } /** -- cgit v1.2.3