Show
Ignore:
Timestamp:
06/13/08 15:57:37 (4 years ago)
Author:
gbooker
Message:

Changed the filtering method and the check for unwatched/favorite. This new system is far more powerful, and should actually be faster too. Implemented a bit more caching to help speed as well.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/CoreData/SapphireFrappliance/MetaData/Support/SapphireBasicDirectoryFunctionsDefines.h

    r575 r588  
    2626        NSPredicate                                             *filterPredicate;               /*!< @brief The filter to apply to this directory*/\ 
    2727        id <SapphireMetaDataDelegate>   delegate;                               /*!< @brief The delegate to inform of changes*/\ 
    28         NSNumber                                                *watchedCache;                  /*!< @brief Cached value of watched predicate*/\ 
    29         NSNumber                                                *favoriteCache;                 /*!< @brief Cached value of favorite predicate*/\ 
     28        NSMutableDictionary                             *predicateCache;                /*!< @brief Cached value of watched, favorite, and other predicates*/\ 
     29 
     30 
     31#define Basic_Directory_Function_Inits \ 
     32        predicateCache = [[NSMutableDictionary alloc] init];\ 
     33 
    3034 
    3135#define Basic_Directory_Function_Deallocs \ 
    3236        [filterPredicate release];\ 
    3337        [delegate release];\ 
    34         [watchedCache release];\ 
    35         [favoriteCache release]; 
     38        [predicateCache release];\ 
     39