From 3a01614df41b55bf8f484646c1f7550610741ef1 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sat, 15 Nov 2008 02:24:28 +0000 Subject: Select the new favorites row as a new favorite is connected, instead of reselecting the currently selected row and its details (Issue #83) --- TableDocument.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TableDocument.m b/TableDocument.m index 408aa2f6..a7f33ea8 100644 --- a/TableDocument.m +++ b/TableDocument.m @@ -357,8 +357,9 @@ NSString *TableDocumentFavoritesControllerFavoritesDidChange = @"TableDocumentFa // select new favorite selectedFavorite = [favoriteName retain]; - + [self didChangeValueForKey:@"favorites"]; + [favoritesController setSelectionIndex:[favorites count]-1]; } /** -- cgit v1.2.3