CTCoreAddress Class Reference

List of all members.


Public Member Functions

(id) - initWithName:email:
(NSString *) - name
(void) - setName:
(NSString *) - email
(void) - setEmail:
(BOOL) - isEqual:
(NSString *) - description

Static Public Member Functions

(id) + address
(id) + addressWithName:email:

Detailed Description

This is a very simple class designed to make it easier to work with email addresses since many times the e-mail address and name are both encoded in the MIME e-mail fields. This class should be very straight forward, you can get and set a name and an e-mail address.

Member Function Documentation

+ (id) address  

Returns a CTCoreAddress with the name and e-mail address set as an empty string.

+ (id) addressWithName: (NSString *)  aName
email: (NSString *)  aEmail 

Returns a CTCoreAddress set with the specified name and email.

- (NSString *) description  

Standard description method

- (NSString *) email  

Returns the e-mail as a NSString

- (id) initWithName: (NSString *)  aName
email: (NSString *)  aEmail 

Returns a CTCoreAddress set with the specified name and email.

- (BOOL) isEqual: (id)  object  

Works like the typical isEqual: method

- (NSString *) name  

Returns the name as a NSString

- (void) setEmail: (NSString *)  aValue  

Sets the e-mail.

- (void) setName: (NSString *)  aValue  

Sets the name.