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) 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
- (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.
- Attention
- Designed initializer
- Parameters
-
- Returns
- A newly initialized list
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) isEqualToContentsOfList: |
|
(SCList *) |
list |
|
Returns a boolean value that indicates whether the contents of the receiving list are equal to the contents of another given list.
- Parameters
-
list | - the list with which to compare the receiving list |
- Returns
- YES if the contents of the specified list are equal to the contents of the receiving list, otherwise NO
- (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
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: