Instance Method

setUserInfoObject:forKey:

Set a value in the userInfo dictionary.

Declaration

- (void)setUserInfoObject:(id)objectOrNil forKey:(NSProgressUserInfoKey)key;

Parameters

objectOrNil

The object to set for the given key, or nil to remove an existing entry in the dictionary.

key

The key to use to store the given object.

Discussion

Use this method to set a value in the userInfo dictionary, with appropriate KVO notification for properties whose values can depend on values in the user info dictionary, like localizedDescription.

Supply a value of nil to remove an existing dictionary entry for a given key.

See Also

Progress Information

indeterminate

Indicates whether the tracked progress is indeterminate.

kind

A string identifying the kind of progress being made.

userInfo

A dictionary of arbitrary values associated with the receiver.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software