Parent class of the object list classes.
More...
#import <SCList.h>
Parent class of the object list classes.
- SDK
- macOS 10.6+, iOS 7.0+, GNUstep
- Since
- version 1.1.3
Class declares the common methods for classes, which represent the lists of objects.
Class instances can thrown the following exceptions:
- (void) addArray: |
|
(SCArray *) |
array |
|
Adds into the receiving list objects from a given array.
- Parameters
-
array | - an array with objects to add to the list |
- Exceptions
-
- Since
- version 1.2.3
- See also
- - addObjectsFromArray:
- (void) addList: |
|
(SCList *) |
list |
|
Adds into the receiving list objects from a given another list.
- Parameters
-
list | - a list with objects to add to the list |
- Exceptions
-
- Since
- version 1.2.3
- See also
- - addObjectsFromList:
- (void) addObjectsFromArray: |
|
(SCArray *) |
array |
|
Adds into the receiving list objects from a given array.
- Parameters
-
array | - an array with objects to add to the list |
- Exceptions
-
- Since
- version 1.2.3
- See also
- - addArray:
- (void) addObjectsFromList: |
|
(SCList *) |
list |
|
Adds into the receiving list objects from a given another list.
- Parameters
-
list | - a list with objects to add to the list |
- Exceptions
-
- Since
- version 1.2.3
- See also
- - addList:
- (void) duplicateCurrentObject |
|
|
|
Duplicates the current object within the receiving list.
- Exceptions
-
- (void) duplicateFirstObject |
|
|
|
Duplicates the first object within the receiving list.
- Exceptions
-
Initializes an empty unnamed list.
- Returns
- A newly initialized list
Reimplemented from SCCollection.
- (instancetype) initWithArray: |
|
(SCArray *) |
array |
|
Initializes a newly allocated list by placing in it the objects contained in a given array.
- Parameters
-
array | - an array with objects to add into the new list |
- Returns
- A newly initialized list with objects from a given array
- Exceptions
-
- Since
- version 1.2.3
- (instancetype) initWithCollection: |
|
(id<SCCollection>) |
collection |
|
Initializes a newly allocated list with objects from the specified collection of any supported type.
- Parameters
-
collection | - a collection with objects to add into the list |
- Returns
- An initialized list with the objects from a given collection
- Exceptions
-
Reimplemented from SCCollection.
- (instancetype) initWithList: |
|
(SCList *) |
list |
|
Initializes a newly allocated list by placing in it the objects contained in another given list.
- Attention
- Designed initializer
- Parameters
-
list | - a list containing the objects with which to initialize the new list |
- Returns
- An initialized list containing the objects found in the specified source list
- Exceptions
-
- (instancetype) initWithName: |
|
(NSString *) |
name |
|
Initializes an empty list using the specified list name.
Designed initializer
- Parameters
-
- Returns
- A newly initialized list
Reimplemented from SCCollection.
Initializes a newly allocated list containing a given object.
- Parameters
-
object | - the object to adding into the list |
- Returns
- An initialized list containing a single object
- (instancetype) initWithObjects: |
|
(id<SCCollectioning>) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Initializes a newly allocated list containing objects from the specified list.
- Parameters
-
object | - the first object to add into the list |
... | - a null-terminated list of alternating objects to add into the list |
NS_REQUIRES_NIL_TERMINATION | - the mandatory nil pointer |
- Returns
- An initialized list containing the specified objects
- (void) insertCurrentCollection: |
|
(id<SCCollection>) |
collection |
|
Inserts the objects from the specified collection into the receiving list before the current object.
- Parameters
-
collection | - the collection of objects to add into the receiving list |
- Exceptions
-
Inserts a given object into the receiving list before the current object.
- Parameters
-
object | - the object to add into the list |
- Exceptions
-
- (void) insertCurrentObjects: |
|
(id<SCCollectioning>) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Inserts the objects from the specified list into the receiving list before the current object.
- Parameters
-
object | - the first object to add into the list |
... | - other objects from the null-terminated list to add into the receiving list |
NS_REQUIRES_NIL_TERMINATION | - the mandatory nil pointer |
- Exceptions
-
- (void) insertFirstCollection: |
|
(id<SCCollection>) |
collection |
|
Inserts the objects from the specified collection into the receiving list before the first object.
- Parameters
-
collection | - the collection of objects to add into the receiving list |
- Exceptions
-
Inserts a given object into the receiving list before the first object.
- Parameters
-
object | - the object to add into the list |
- Exceptions
-
- (void) insertFirstObjects: |
|
(id<SCCollectioning>) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Inserts the objects from the specified list into the receiving list before the first object.
- Parameters
-
object | - the first object to add into the list |
... | - other objects from the null-terminated list to add into the receiving list |
NS_REQUIRES_NIL_TERMINATION | - the mandatory nil pointer |
- Exceptions
-
- (BOOL) isEqualToList: |
|
(SCList *) |
list |
|
Returns a boolean value that indicates whether the settings and contents of the receiving list are equal to the settings and contents of another given list.
- Parameters
-
list | - the list with which to compare the receiving list |
- Returns
- YES if the settings and contents of the specified list are equal to the settings and contents of the receiving list, otherwise NO
Creates and returns an unnamed empty list.
- Returns
- A created list
- (instancetype) listByAddingArray: |
|
(SCArray *) |
array |
|
Returns a new list that contains objects from the receiving list and a given array.
- Parameters
-
array | - an array with objects to add to the new list |
- Returns
- A new list with objects from the receiving list and a given array
- Exceptions
-
- Since
- version 1.2.3
- See also
- - listByAddingObjectsFromArray:
- (instancetype) listByAddingCollection: |
|
(id<SCCollection>) |
collection |
|
Returns a new list that contains objects from the receiving list and a given collection of any supported type.
- Parameters
-
collection | - a collection with objects to add to the new list |
- Returns
- A new list with objects from the receiving list and a given collection
- Exceptions
-
- Since
- version 1.2.3
- (instancetype) listByAddingList: |
|
(SCList *) |
list |
|
Returns a new list that contains objects from the receiving list and a given another list.
- Parameters
-
list | - a list with objects to add to the new list |
- Returns
- A new list with objects from the receiving list and a given another list
- Exceptions
-
- Since
- version 1.2.3
- See also
- - listByAddingObjectsFromList:
Returns the new list that contains objects from the receiving list and a given object.
- Parameters
-
object | - the object to add into the new list |
- Returns
- A new list with objects from the receiving list and a given object
- Exceptions
-
- Since
- version 1.2.3
- (instancetype) listByAddingObjects: |
|
(id<SCCollectioning>) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Returns a new list that contains objects from the receiving list and objects from the specified list.
- Parameters
-
object | - the first object to add into the new list |
... | - a comma-separated list of additional objects, ending with nil pointer |
NS_REQUIRES_NIL_TERMINATION | - a mandatory nil pointer |
- Returns
- A new list with objects from the receiving list and objects from the specified list
- Exceptions
-
- Since
- version 1.2.3
- (instancetype) listByAddingObjectsFromArray: |
|
(SCArray *) |
array |
|
Returns a new list that contains objects from the receiving list and a given array.
- Parameters
-
array | - an array with objects to add to the new list |
- Returns
- A new list with objects from the receiving list and a given array
- Exceptions
-
- Since
- version 1.2.3
- See also
- - listByAddingArray:
- (instancetype) listByAddingObjectsFromList: |
|
(SCList *) |
list |
|
Returns a new list that contains objects from the receiving list and a given another list.
- Parameters
-
list | - a list with objects to add to the new list |
- Returns
- A new list with objects from the receiving list and a given another list
- Exceptions
-
- Since
- version 1.2.3
- See also
- - listByAddingList:
+ (instancetype) listWithArray: |
|
(SCArray *) |
array |
|
Returns a list created by using objects from a given array.
- Parameters
-
array | - an array with objecrs to add into the new list |
- Returns
- A created list
- Exceptions
-
- Since
- version 1.2.3
+ (instancetype) listWithCoder: |
|
(NSCoder *) |
coder |
|
Returns a list created by using the specified coder.
- Parameters
-
- Returns
- A created list
+ (instancetype) listWithCollection: |
|
(id<SCCollection>) |
collection |
|
Returns a list created by using the objects from the specified collection of any supported type.
- Parameters
-
collection | - the existing source collection |
- Returns
- A created list
- Exceptions
-
+ (instancetype) listWithContentsOfFile: |
|
(NSString *) |
path |
|
Returns a list created by using the file with the specified path.
- Parameters
-
path | - the path to the source file |
- Returns
- A created list
+ (instancetype) listWithContentsOfSerializedFile: |
|
(NSString *) |
path |
|
Returns a list created by using the content of the serialized file with the specified path.
- Parameters
-
path | - the path to the source serialized file |
- Returns
- A created list
+ (instancetype) listWithContentsOfURL: |
|
(NSURL *) |
url |
|
Returns a list created by using the specified URL.
- Parameters
-
- Returns
- A created list
+ (instancetype) listWithContentsOfURLString: |
|
(NSString *) |
urlString |
|
Returns a list created by using the data from the URL with the specified string.
- Parameters
-
urlString | - the string of the source URL |
- Returns
- A created list
+ (instancetype) listWithData: |
|
(NSData *) |
data |
|
Returns a list created by using the specified data object.
- Parameters
-
data | - the source data object |
- Returns
- A created list
+ (instancetype) listWithDataDictionary: |
|
(NSDictionary *) |
dictionary |
|
Returns a list created by using the specified data dictionary.
- Parameters
-
dictionary | - the source data dictionary |
- Returns
- A created list
+ (instancetype) listWithDataDictionaryFromFile: |
|
(NSString *) |
path |
|
Returns a list created by using the data dictionary from the specified file.
- Parameters
-
path | - the path to the source data dictionary file |
- Returns
- A created list
+ (instancetype) listWithFileStream: |
|
(NSString *) |
path |
|
Returns a list created by using the data from the file stream with the specified file.
- Parameters
-
path | - the path to the source file stream |
- Returns
- A created list
- Exceptions
-
+ (instancetype) listWithList: |
|
(SCList *) |
list |
|
Creates and returns a list containing objects from another given list.
- Parameters
-
list | - a list containing the objects with which to initialize the new list |
- Returns
- A new list containing the objects found in the specified list
- Exceptions
-
+ (instancetype) listWithName: |
|
(NSString *) |
name |
|
Returns an empty list created by using the specified list name.
- Parameters
-
name | - the name of the new list |
- Returns
- A created list
Creates and returns a list containing a given object.
- Parameters
-
object | - the object to adding into the list |
- Returns
- A new list containing a signe object
+ (instancetype) listWithObjects: |
|
(id<SCCollectioning>) |
object |
, |
|
|
NS_REQUIRES_NIL_TERMINATION |
|
|
| |
Creates and returns a list containing the objects from the specified list.
- Parameters
-
object | - the first object to add into the new list |
... | - a null-terminated list of alternating objects to add into the new list |
NS_REQUIRES_NIL_TERMINATION | - the mandatory nil pointer |
- Returns
- A new list containing the specified objects
+ (instancetype) listWithStream: |
|
(SCStream *) |
stream |
|
Returns a list created by using the data from the specified stream.
- Parameters
-
stream | - the source stream |
- Returns
- A created list
- Exceptions
-
Shifts the current object pointer to the next object in the receiving list and returns a pointer to the next object.
- Returns
- A next object or nil if the current object is a last object within the list
- (void) removeCurrentObject |
|
|
|
Removes from the receiving list the current object.
- Exceptions
-
- (void) removeFirstObject |
|
|
|
Removes the first object from the receiving list.
- Exceptions
-
Replaces the current object with a given object.
- Parameters
-
object | - the object with which to replace the current object |
- Exceptions
-
Replaces the first object with a given object.
- Parameters
-
object | - the object with which to replace the first object |
- Exceptions
-
- (void) setList: |
|
(SCList *) |
list |
|
Sets the settings and contents of the receiving list to settings and objects in a given list.
- Parameters
-
- Exceptions
-
The current object within the list or nil if the list is empty
The first object within the list or if the list is empty
The documentation for this class was generated from the following files: