Release 2.1  Copyright ã1993-1994 by Lighthouse Design, Ltd.  All Rights Reserved.

FCSortedList

Inherits From:	FCSortedCollection : FCOrderedCollection : FCCollection : Object 

Declared In:	FCSortedList.h 

Class Description 

FCSortedList is a subclass of FCSortedCollection that implements the behavior of a collection which automatically keeps itself sorted. See the documentation on FCSortedCollection for a description of how sorting is accomplished. 

An FCSortedList gives the programmer an efficient solution to the problem of keeping a collection of objects sorted even after modifying the collection's contents. 

Whether you should use a FCSortedList or just a regular FCList and send it the - sortByCompare: message when you want it sorted depends on how often you want to access the collection.  If you are going to add a few objects, access the collection, add a few more, access it again, etc., then you'd be better off with FCSortedList. However, if you are going to add a lot of objects and then access the collection once, it might be faster to just use an FCList and call - sortByCompare: once (and avoid the overhead of inserting objects in sorted order). 

FCSortedList inherits from FCSortedCollection, FCOrderedCollection, and FCCollection.  FCSortedList defines no new methods, but all the methods in its superclasses will work on an FCSortedList as well.  Refer to the documentation on those classes to complete the description of an FCSortedList. 

Instance Variables 

Inherited from Object 
None declared in this class. 

Inherited from FCCollection 
id _fc_contents ; 
Class _fc_class ; 
SEL _fc_sortSelector ; 
BOOL _fc_archiveByReference ; 

Inherited from FCOrderedCollection 
None declared in this class. 

Inherited from FCSortedCollection 
None declared in this class. 

Declared in FCSortedList 
None declared in this class. 

Method Types 

No additional methods in this class.