From 351f574f084441a8bc315cf9e94b89f48e4db7cd Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 7 Jan 2012 16:18:56 +0000 Subject: [PATCH] when showing/hiding group rows, fade them in/out instead of sliding them left --- macosx/Controller.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 6d1f8bf3d..2bf99a63e 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -2358,7 +2358,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy [fDisplayedTorrents addObject: newGroup]; if (onLion) - [fTableView insertItemsAtIndexes: [NSIndexSet indexSetWithIndex: [fDisplayedTorrents count]-1] inParent: nil withAnimation: NSTableViewAnimationSlideLeft]; + [fTableView insertItemsAtIndexes: [NSIndexSet indexSetWithIndex: [fDisplayedTorrents count]-1] inParent: nil withAnimation: NSTableViewAnimationEffectFade]; } else //if we haven't processed the other group yet, we have to make sure we don't flag it for removal the next time { @@ -2401,7 +2401,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy [fDisplayedTorrents addObject: group]; if (onLion) - [fTableView insertItemsAtIndexes: [NSIndexSet indexSetWithIndex: [fDisplayedTorrents count]-1] inParent: nil withAnimation: NSTableViewAnimationSlideLeft]; + [fTableView insertItemsAtIndexes: [NSIndexSet indexSetWithIndex: [fDisplayedTorrents count]-1] inParent: nil withAnimation: NSTableViewAnimationEffectFade]; } [[group torrents] addObject: torrent]; @@ -2422,7 +2422,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy { [fDisplayedTorrents removeObjectsAtIndexes: removeIndexes]; if (onLion) - [fTableView removeItemsAtIndexes: removeIndexes inParent: nil withAnimation: NSTableViewAnimationSlideLeft]; + [fTableView removeItemsAtIndexes: removeIndexes inParent: nil withAnimation: NSTableViewAnimationEffectFade]; } //now that all groups are there, sort them - don't insert on the fly in case groups were reordered in prefs