NSArray Additions
Category of: NSArray
Declared in:
- EOControl/EOQualifier.h
- EOControl/EOSortOrdering.h
- EOControl/EOClassDescription.h
- EOControl/EOKeyValueCoding.h
Category Description
Enterprise Objects Framework adds some methods to the Foundation Framework's NSArray class cluster, for filtering objects according to an EOQualifier and sorting them according to a series of EOSortOrderings. It also adds methods for key-value coding, with special support for aggregates, and a convenience method for filtering an array with a specified qualifier.
Method Types
- Filtering and sorting objects
- - filteredArrayUsingQualifier:
- - sortedArrayUsingKeyOrderArray:
- Aggregate functions
- - computeAvgForKey:
- - computeCountForKey:
- - computeMaxForKey:
- - computeMinForKey:
- - computeSumForKey:
- Key Value Coding
- - valueForKey:
- Making copies
- - shallowCopy
Instance Methods
computeAvgForKey:
- (id)computeAvgForKey:(NSString
*)key
computeCountForKey:
- (id)computeCountForKey:(NSString
*)key
computeMaxForKey:
- (id)computeMaxForKey:(NSString
*)key
computeMinForKey:
- (id)computeMinForKey:(NSString
*)key
See Also: - valueForKey:, - computeAvgForKey:, - computeCountForKey:, - computeMaxForKey:, - computeSumForKey:
computeSumForKey:
- (id)computeSumForKey:(NSString
*)key
filteredArrayUsingQualifier:
- (NSArray *)filteredArrayUsingQualifier:(EOQualifier
*)aQualifier
shallowCopy
- (NSArray *)shallowCopy
sortedArrayUsingKeyOrderArray:
- (NSArray *)sortedArrayUsingKeyOrderArray:(NSArray
*)orderings
See Also: - sortUsingKeyOrderArray: ( NSMutableArray Additions)
valueForKey:
- (id)valueForKey:(NSString
*)key
For instance, if this method were
passed the key @sum.budget, it would invoke computeSumForKey:@"budget"
on
the array, which would add the values for the budget keys for all
of the objects in the array. The returned value would be the sum
of all of the objects' budgets. The following aggregates are defined:
@sum, @count, @avg, @min, @max. You can extend this set by adding
methods to NSArray of the form computeNameForKey:.