Instance Method

updateUserActivityState:

Updates the state of the given user activity.

Declaration

- (void)updateUserActivityState:(NSUserActivity *)userActivity;

Parameters

userActivity

The user activity to be updated.

Discussion

Subclasses override this method to update the state of the supplied userActivity. Add state representing the user's activity into userActivity using its addUserInfoEntriesFromDictionary: method. When the state is dirty, set the needsSave property to YES.

When an NSUserActivity object managed by AppKit is updated, an empty userInfo dictionary is given to the user activity, and all of the objects associated with the user activity are sent an NSResponder message.

See Also

Supporting User Activities

userActivity

An object encapsulating a user activity supported by this responder.