NNTagging Reference Library

NNQueryBundle Class Reference

NNQueryBundle Class Reference

Inherits from
Declared in NNQueryBundle.h

Tasks

Class Methods

bundle

+ (NNQueryBundle *)bundle
Return Value

new NNQueryBundle

Discussion

Creates a new NNQueryBundle

Declared In
NNQueryBundle.h

Instance Methods

addObject:

- (void)addObject:(id)anItem
Parameters
anItem

NNTaggableObject to add

Declared In
NNQueryBundle.h

containsObject:

- (BOOL)containsObject:(id)anItem
Parameters
anItem

NNTaggableObject to look for

Declared In
NNQueryBundle.h

removeObject:

- (void)removeObject:(id)anItem
Parameters
anItem

NNTaggableObject to remove

Declared In
NNQueryBundle.h

stringValue

- (NSString *)stringValue
Return Value

Name of this bundle, e.g. "PDF"

Declared In
NNQueryBundle.h

resultCount

- (NSUInteger)resultCount
Return Value

Number of results

Declared In
NNQueryBundle.h

resultAtIndex:

- (id)resultAtIndex:(NSUInteger)idx
Parameters
idx

Index of result to return

Return Value

NNTaggableObject at the given index

Declared In
NNQueryBundle.h

sortUsingSelector:

- (void)sortUsingSelector:(SEL)comparator
Parameters
comparator

Selector to use for sorting

Discussion

Sorts the results of this bundle by the given selector.

Declared In
NNQueryBundle.h

results

- (NSArray *)results
Return Value

Results/contents of this bundle

Declared In
NNQueryBundle.h

setResults:

- (void)setResults:(NSArray *)newResults
Parameters
newResults

New results to use

Discussion

Sets a new array for results.

Declared In
NNQueryBundle.h

value

- (NSString *)value
Return Value

Value of this bundle, currently equal to stringValue, e.g. "PDF"

Declared In
NNQueryBundle.h

displayName

- (NSString *)displayName
Return Value

Name of the bundle for display, e.g. "PDF Documents" instead of "PDF"

Declared In
NNQueryBundle.h

setValue:

- (void)setValue:(NSString *)newValue
Parameters
newValue

New value to use

Discussion

Sets the value of this bundle.

Declared In
NNQueryBundle.h

bundlingAttribute

- (NSString *)bundlingAttribute
Return Value

Bundling attribute of sub-bundles

Discussion

NOT IMPLEMENTED YET - bundling attribute to use for sub-bundling of results.

Declared In
NNQueryBundle.h

setBundlingAttribute:

- (void)setBundlingAttribute:(NSString *)attribute
Parameters
attribute

New attribute to use for sub-bundling

Discussion

NOT IMPLEMENTED YET - new bundling attribute to use fo sub-bundling of results.

Declared In
NNQueryBundle.h

Last updated: 2010-5-13