| Inherits from | |
|---|---|
| Declared in | NNTagToFinderCommentWriter.h |
Abstract class
Provides different tag syntax for Spotlight Finder Comment and the ways to write it.
- (NSString *)finderTagCommentForTags:(NSArray *)tags Tags to create the comment for
String representation for tags in concrete syntax
Abstract method for template method.
NNTagToFinderCommentWriter.h- (NSString *)finderCommentIgnoringKeywordsForFile:(NNFile *)file File to get comment for
Finder comment contents without NNTagging stuff
Abstract method for template method.
NNTagToFinderCommentWriter.h- (NSArray *)readTagsFromFile:(NNFile *)file creationOptions:(NNTagsCreationOptions)options useStore:(NNFinderCommentStore)store File to get tags for
Influence tag creation
Determines the backing storage to get the finder comments from
Array of NNTags on file
Abstract method.
NNTagToFinderCommentWriter.h- (NSArray *)tagsInComment:(NSString *)comment Finder Comment
Tags in comment
Abstract method.
Calls tagsInComment:creationOptions with NNTagsCreationOptionNone
NNTagToFinderCommentWriter.h- (NSArray *)tagsInComment:(NSString *)comment creationOptions:(NNTagsCreationOptions)options Finder Comment
Determines if tags are created
Tags in comment
Abstract method.
Parses the passed string to get the tags.
NNTagToFinderCommentWriter.h- (NSArray *)keywordsForComment:(NSString *)comment Finder Comment
NSArray of NSString with tag names
Abstract method.
Reads the tag names from the Finder Comment
NNTagToFinderCommentWriter.h- (NSString *)commentForFile:(NNFile *)file File to get comment for
comment
Calls commentForFile:useStore with NNFinderCommentFinderStore
Uses the finder scripting bridge to fetch the finder comment. Will cause hangs when using this while dragging the file from finder.
NNTagToFinderCommentWriter.h- (NSString *)commentForFile:(NNFile *)file useStore:(NNFinderCommentStore)store file to get comment for
Determines the backing storage to get the finder comments from
comment
Using the spotlight db to fetch the finder comment won't cause Finder to hang on drop, but data might be out of date.
NNTagToFinderCommentWriter.h- (NSString *)prefixTag prefix as set in NNTagStoreManager
NNTagToFinderCommentWriter.h- (void)setPrefix:(NSString *)aPrefix Prefix to use in NNTagStoreManager
NNTagToFinderCommentWriter.h- (BOOL)setComment:(NSString *)comment forURL:(NSURL *)fileURL New comment
File to set comment for
YES on success, NO otherwise
Sets the finder comment using the scripting bridge.
NNTagToFinderCommentWriter.h- (NSString *)commentForURL:(NSURL *)fileURL file to get comment for
comment
Returns the Finder Comment using the Scripting Bridge (causes the finder to hang if the comment is read on drag'n'drop
NNTagToFinderCommentWriter.mLast updated: 2010-5-13