Instance Method

setVolatileDomain:forName:

Sets the dictionary for the specified volatile domain.

Declaration

- (void)setVolatileDomain:(NSDictionary<NSString *,id> *)domain forName:(NSString *)domainName;

Parameters

domain

The dictionary of keys and values you want to assign to the domain.

domainName

The domain whose keys and values you want to set.

Discussion

This method raises an NSInvalidArgumentException if a volatile domain with the specified name already exists.

See Also

Maintaining Volatile Domains

volatileDomainNames

The current volatile domain names.

- volatileDomainForName:

Returns the dictionary for the specified volatile domain.

- removeVolatileDomainForName:

Removes the specified volatile domain from the user’s defaults.