Instance Method

setFloat:forKey:

Sets the value of the specified default key to the specified float value.

Declaration

- (void)setFloat:(float)value forKey:(NSString *)defaultName;

Parameters

value

The float value to store in the defaults database.

defaultName

The key with which to associate the value.

Discussion

This is a convenience method for calling setObject:forKey:.

See Also

Setting Default Values

- setObject:forKey:

Sets the value of the specified default key.

- setDouble:forKey:

Sets the value of the specified default key to the double value.

- setInteger:forKey:

Sets the value of the specified default key to the specified integer value.

- setBool:forKey:

Sets the value of the specified default key to the specified Boolean value.

- setURL:forKey:

Sets the value of the specified default key to the specified URL.