From 252ac0be49bf409b1eda3726f4f4a47bd6b5b5b6 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 7 Sep 2009 10:11:35 +0000 Subject: =?UTF-8?q?=E2=80=A2=20updated=20SPQueryFavoriteManager=20to=20man?= =?UTF-8?q?ge=20document-based=20and=20global=20query=20favorites=20?= =?UTF-8?q?=E2=80=A2=20disabled=20"Select=20Active=20Query"=20in=20CMTextV?= =?UTF-8?q?iew=20if=20shown=20in=20the=20favorite=20manager=20=E2=80=A2=20?= =?UTF-8?q?code=20cleaning=20and=20simplifications?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPQueryController.m | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Source/SPQueryController.m') diff --git a/Source/SPQueryController.m b/Source/SPQueryController.m index 4345f616..4dbd3749 100644 --- a/Source/SPQueryController.m +++ b/Source/SPQueryController.m @@ -569,6 +569,17 @@ static SPQueryController *sharedQueryController = nil; } +- (void)removeFavoriteAtIndex:(NSUInteger)index forFileURL:(NSURL *)fileURL +{ + [[favoritesContainer objectForKey:[fileURL absoluteString]] removeObjectAtIndex:index]; +} + +- (void)insertFavorite:(NSDictionary *)favorite atIndex:(NSUInteger)index forFileURL:(NSURL *)fileURL +{ + [[favoritesContainer objectForKey:[fileURL absoluteString]] insertObject:favorite atIndex:index]; +} + + @end @implementation SPQueryController (PrivateAPI) -- cgit v1.2.3