Type Method

addPropertiesAndTypes:

Adds the given properties to all the records of this type in the Address Book database.

Declaration

+ (NSInteger)addPropertiesAndTypes:(NSDictionary *)properties;

Parameters

properties

A dictionary of properties to add, and their types.

Return Value

The number of properties successfully added, or -1 if an error occurs.

Discussion

In each dictionary entry, the key is a string with the property’s name, and the value is a constant with the property’s type. The property’s name must be unique. You may want to use Java-style package names for your properties, for example, org.dogclub.dogname or com.mycompany.customerID. The property type must be one of the constants described in Property Types.

See Also

Managing Properties

+ removeProperties:

Removes the given properties from all the records of this type in the Address Book database.

+ properties

Returns an array of the names of all the properties for the record in the Address Book database.

+ typeOfProperty:

Returns the type of a given property.