CURLList Class Reference
Inherits from | NSObject |
Declared in | CURLList.h |
Overview
Wrapper for the curl_slist structure.
You can make a list from an array or a single object, using listWithContentsOrArray: or listWithString:. You can then append items to it with appendObject:
There is no way to remove or re-order items, and the only way to empty it is to release it.
The curl_slist type is only designed to contain strings. When you add something to CURLList, it calls description on it to get a textual representation.
Tasks
-
list
The underlying curl_slist structure.
property -
+ listWithArray:
Create a list from an array of objects.
-
+ listWithObject:
Create a list with a single object.
-
– addObject:
Add an object to the list.
Class Methods
listWithArray:
Create a list from an array of objects.
+ (CURLList *)listWithArray:(NSArray *)array
Parameters
- array
The items for the list – must contain only NSString objects.
Return Value
The new list.
Discussion
We will call [NSObject description] on each object to obtain a textual representation, which is what will actually be added to the list.
Declared In
CURLList.h
listWithObject:
Create a list with a single object.
+ (CURLList *)listWithObject:(id<NSObject>)object
Parameters
- object
An object to add to the new list.
Return Value
The new list.
Discussion
We will call [NSObject description] on the object to obtain a textual representation, which is what will actually be added to the list.
Declared In
CURLList.h