| Inherits from | |
|---|---|
| Declared in | NNTag.h |
Treat this class as the abstract superclass for all Tags, most of the methods are not implemented here, subclasses need to overwrite!
- isEqual:
- copyWithZone:
- renameTo:
- absoluteRating
- relativeRatingToTag:
- remove
- initWithName:
- name
- precomposedName
- setName:
- setName:decompose:
- query
- negatedQuery
- setQuery:
- taggedObjects
- lastClicked
- setLastClicked:
- lastUsed
- setLastUsed:
- clickCount
- setClickCount:
- useCount
- setUseCount:
- incrementClickCount
- incrementUseCount
- decrementUseCount
- writeToTagDatabase
- removeFromTagDatabase
- compare:
- (BOOL)isEqual:(id)other NSObject to compare to
YES if equal; NO otherwise
must overwrite
NNTag.h- (id)copyWithZone:(NSZone *)zone NSZone to use
copied NNTag subclass
must overwrite
NNTag.h- (void)renameTo:(NSString *)aName new tag name
must overwrite
Use this method if you want to implement a tag renaming which updates the backing storage.
NNTag.h- (CGFloat)absoluteRatingTag rating
must overwrite
Tag rating should be between 0.0 and infinity.
NNTag.h- (CGFloat)relativeRatingToTag:(NNTag *)otherTag Tag to compare rating to
Value in [0.0,1.0]
must overwrite
NNTag.h- (void)removemust overwrite
This method is called when the tag should be removed from the backing storage.
NNTag.h- (id)initWithName:(NSString *)aName Name for the new tag
NNTag subclass with aName
may overwrite
Initializes the tag with the given name. It will be decomposed to its canonical mapping, i.e. diacritics are stored as separate characters.
NNTag.h- (NSString *)nameThe tag name that is represented in its decomposed form, i.e. diacritics are stored as separate characters.
may overwrite
NNTag.h- (NSString *)precomposedNameThe tag name that is represented in its precomposed form, i.e. diacritics are stored as one single character.
may overwrite
NNTag.h- (void)setName:(NSString *)aName New tag name that will be decomposed to its canonical mapping, i.e. diacritics are stored as separate characters.
may overwrite
NNTag.h- (void)setName:(NSString *)aName decompose:(BOOL)decompose New tag name
Decompose string with canonical mapping
may overwrite
NNTag.h- (NSString *)queryQuery for this tag in spotlight syntax
may overwrite
NNTag.h- (NSString *)negatedQueryNegated query for this tag in spotlight syntax
may overwrite
NNTag.h- (void)setQuery:(NSString *)aQuery Query in spotlight syntax
may overwrite
NNTag.h- (NSArray *)taggedObjectsNNTaggableObjects array for tag
Executes a spotlight query for the tag. Blocks the thread until results have been gathered.
NNTag.h- (NSDate *)lastClickedThe time when this tag was most recently clicked
may overwrite
NNTag.h- (void)setLastClicked:(NSDate *)clickDate New last clicked date
may overwrite
NNTag.h- (NSDate *)lastUsedThe time when this tag was most recently assigned to a NNTaggableObject
may overwrite
NNTag.h- (void)setLastUsed:(NSDate *)useDate New last used date
may overwrite
NNTag.h- (NSUInteger)clickCountHow often this tag was clicked
may overwrite
NNTag.h- (void)setClickCount:(NSUInteger)count New click count
may overwrite
NNTag.h- (NSUInteger)useCountHow often this tag was used
may overwrite
NNTag.h- (void)setUseCount:(NSUInteger)count New use count
may overwrite
NNTag.h- (void)incrementClickCountmay overwrite
Increments the click count.
NNTag.h- (void)incrementUseCountmay overwrite
Increments the use count.
NNTag.h- (void)decrementUseCountmay overwrite
decrements the use count
NNTag.h- (BOOL)writeToTagDatabaseYES if successful
may overwrite
Saves tag to sql store.
NNTag.h- (BOOL)removeFromTagDatabaseYES if successful
may overwrite
Removes tag from sql store.
NNTag.h- (NSComparisonResult)compare:(id)object NSComparisonResult
may overwrite
Compares tag to another tag - by name.
NNTag.hLast updated: 2010-5-13