From 4e87089af2ce50364a3e6fcfdf8a3c31e172d8aa Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sun, 5 Dec 2010 15:03:28 +0000 Subject: Apply new favorites outline view patch. --- Source/SPFavoritesController.h | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'Source/SPFavoritesController.h') diff --git a/Source/SPFavoritesController.h b/Source/SPFavoritesController.h index 1b9f0aca..095e1cd0 100644 --- a/Source/SPFavoritesController.h +++ b/Source/SPFavoritesController.h @@ -25,6 +25,8 @@ #import "SPSingleton.h" +@class SPTreeNode; + /** * @class SPFavoritesController SPFavoritesController.h * @@ -35,17 +37,31 @@ */ @interface SPFavoritesController : SPSingleton { - NSMutableDictionary *favorites; + SPTreeNode *favoritesTree; + NSMutableDictionary *favoritesData; + + pthread_mutex_t writeLock; + pthread_mutex_t favoritesLock; } /** - * @property favorites Favorites data dictionary + * @property favoritesTree + */ +@property (readonly) SPTreeNode *favoritesTree; + +/** + * @property favoritesData Favorites data dictionary */ -@property (readonly) NSMutableDictionary *favorites; +@property (readonly) NSMutableDictionary *favoritesData; + (SPFavoritesController *)sharedFavoritesController; - (void)saveFavorites; - (void)reloadFavoritesWithSave:(BOOL)save; +- (SPTreeNode *)addGroupNodeWithName:(NSString *)name asChildOfNode:(SPTreeNode *)parent; +- (SPTreeNode *)addFavoriteNodeWithData:(NSDictionary *)data asChildOfNode:(SPTreeNode *)parent; + +- (void)removeFavoriteNode:(SPTreeNode *)node; + @end -- cgit v1.2.3 From 1632c45fdd9d0b8fe1e0aef3e891e8bd5704df29 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sun, 13 Mar 2011 18:50:40 +0000 Subject: Fix issue related to dragging a node to a group node that is being renamed as well as fix all warnings related to the connection outlinew view. --- Source/SPFavoritesController.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPFavoritesController.h') diff --git a/Source/SPFavoritesController.h b/Source/SPFavoritesController.h index 095e1cd0..3bde2376 100644 --- a/Source/SPFavoritesController.h +++ b/Source/SPFavoritesController.h @@ -60,7 +60,7 @@ - (void)reloadFavoritesWithSave:(BOOL)save; - (SPTreeNode *)addGroupNodeWithName:(NSString *)name asChildOfNode:(SPTreeNode *)parent; -- (SPTreeNode *)addFavoriteNodeWithData:(NSDictionary *)data asChildOfNode:(SPTreeNode *)parent; +- (SPTreeNode *)addFavoriteNodeWithData:(NSMutableDictionary *)data asChildOfNode:(SPTreeNode *)parent; - (void)removeFavoriteNode:(SPTreeNode *)node; -- cgit v1.2.3 From b31bb2c4981d0a44119c43eac7525233a7c3b0e3 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sun, 22 Jan 2012 22:40:05 +0000 Subject: Split out connection controller initialization. --- Source/SPFavoritesController.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPFavoritesController.h') diff --git a/Source/SPFavoritesController.h b/Source/SPFavoritesController.h index 3bde2376..e15ab385 100644 --- a/Source/SPFavoritesController.h +++ b/Source/SPFavoritesController.h @@ -45,7 +45,7 @@ } /** - * @property favoritesTree + * @property favoritesTree The current favorites tree */ @property (readonly) SPTreeNode *favoritesTree; -- cgit v1.2.3