aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-09-04 13:44:32 +0000
committerBibiko <bibiko@eva.mpg.de>2009-09-04 13:44:32 +0000
commite00013ffbf5fb252a11fc6e2c68a1af0b9886317 (patch)
tree62888a4cb0a66b1c1e705d160f30588060d47804 /Source/SPQueryController.m
parent3352744652a821093ef1138187609cdca5c9fef7 (diff)
downloadsequelpro-e00013ffbf5fb252a11fc6e2c68a1af0b9886317.tar.gz
sequelpro-e00013ffbf5fb252a11fc6e2c68a1af0b9886317.tar.bz2
sequelpro-e00013ffbf5fb252a11fc6e2c68a1af0b9886317.zip
• first steps to support global/document-based query favorites
- not yet fully implemented but workable
Diffstat (limited to 'Source/SPQueryController.m')
-rw-r--r--Source/SPQueryController.m11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/SPQueryController.m b/Source/SPQueryController.m
index 807f5444..4345f616 100644
--- a/Source/SPQueryController.m
+++ b/Source/SPQueryController.m
@@ -493,11 +493,6 @@ static SPQueryController *sharedQueryController = nil;
}
-- (void)addFavorite:(NSDictionary *)favorite forFileURL:(NSURL *)fileURL
-{
-
-}
-
- (void)replaceFavoritesByArray:(NSArray *)favoritesArray forFileURL:(NSURL *)fileURL
{
if([favoritesContainer objectForKey:[fileURL absoluteString]])
@@ -510,6 +505,12 @@ static SPQueryController *sharedQueryController = nil;
[historyContainer setObject:historyArray forKey:[fileURL absoluteString]];
}
+- (void)addFavorite:(NSDictionary *)favorite forFileURL:(NSURL *)fileURL
+{
+ if([favoritesContainer objectForKey:[fileURL absoluteString]])
+ [[favoritesContainer objectForKey:[fileURL absoluteString]] addObject:favorite];
+}
+
- (void)addHistory:(NSString *)history forFileURL:(NSURL *)fileURL
{