Instance Method

removePersistentDomainForName:

Removes the contents of the specified persistent domain from the user’s defaults.

Declaration

- (void)removePersistentDomainForName:(NSString *)domainName;

Parameters

domainName

The name of the domain to have its contents removed.

Discussion

Calling this method is equivalent to initializing a user defaults object with initWithSuiteName: passing domainName, and calling the removeObjectForKey: method on each of its keys.

When a persistent domain is changed, an NSUserDefaultsDidChangeNotification is posted.

See Also

Maintaining Persistent Domains

- persistentDomainForName:

Returns a dictionary representation of the defaults for the specified domain.

- setPersistentDomain:forName:

Sets a dictionary for the specified persistent domain.

- persistentDomainNames

Returns an array of the current persistent domain names.

Deprecated