Instance Method

dictionaryRepresentation

Returns a dictionary that contains a union of all key-value pairs in the domains in the search list.

Declaration

- (NSDictionary<NSString *,id> *)dictionaryRepresentation;

Return Value

A dictionary containing the keys. The keys are names of defaults and the value corresponding to each key is a property list object (NSData, NSString, NSNumber, NSDate, NSArray, or NSDictionary).

Discussion

As with objectForKey:, key-value pairs in domains that are earlier in the search list take precedence. The combined result does not preserve information about which domain each entry came from.

See Also

Getting Default Values

- objectForKey:

Returns the object associated with the specified key.

- URLForKey:

Returns the URL associated with the specified key.

- arrayForKey:

Returns the array associated with the specified key.

- dictionaryForKey:

Returns the dictionary object associated with the specified key.

- stringForKey:

Returns the string associated with the specified key.

- stringArrayForKey:

Returns the array of strings associated with the specified key.

- dataForKey:

Returns the data object associated with the specified key.

- boolForKey:

Returns the Boolean value associated with the specified key.

- integerForKey:

Returns the integer value associated with the specified key.

- floatForKey:

Returns the float value associated with the specified key.

- doubleForKey:

Returns the double value associated with the specified key.