diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-09-07 10:11:35 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-09-07 10:11:35 +0000 |
commit | 252ac0be49bf409b1eda3726f4f4a47bd6b5b5b6 (patch) | |
tree | b9b3d8a22cfabab07a68534841f7166b0a6a8563 /Source/SPQueryController.m | |
parent | 9683c9df3cb0b1128429f42f108d4e03ca4550f1 (diff) | |
download | sequelpro-252ac0be49bf409b1eda3726f4f4a47bd6b5b5b6.tar.gz sequelpro-252ac0be49bf409b1eda3726f4f4a47bd6b5b5b6.tar.bz2 sequelpro-252ac0be49bf409b1eda3726f4f4a47bd6b5b5b6.zip |
• updated SPQueryFavoriteManager to mange document-based and global query favorites
• disabled "Select Active Query" in CMTextView if shown in the favorite manager
• code cleaning and simplifications
Diffstat (limited to 'Source/SPQueryController.m')
-rw-r--r-- | Source/SPQueryController.m | 11 |
1 files changed, 11 insertions, 0 deletions
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) |