CWMIMEMultipart


Discussion

This class is used to define a composite multipart. It holds CWPart instances.

Superclass

NSObject

Declared In

CWMIMEMultipart.h



Methods

-addPart:
-count
-partAtIndex:
-removePart:

addPart:


- (void) addPart: (CWPart *) thePart; 
Parameters
thePart

The CWPart instance to add.

Discussion

This method is used to add new body part to the multipart instance.


count


- (unsigned int) count; 
Return Value

The number of Part instances.

Discussion

This method returns the number of CWPart objects present in the receiver.


partAtIndex:


- (CWPart *) partAtIndex: (unsigned int) theIndex; 
Parameters
theIndex

The index of the CWPart instance to get.

Return Value

The CWPart instance. If the index is out of bounds, an NSRangeException is raised.

Discussion

This method is used to get the CWPart instance at the specified index.


removePart:


- (void) removePart: (CWPart *) thePart; 
Parameters
thePart

The CWPart instance to remove.

Discussion

This method is used to remove an existing body part from the multipart instance.


Member Data

_parts

_parts


private

NSMutableArray *_parts;