Instance Method

updateUserActivityState:

Updates the state of the given user activity.

Declaration

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

Parameters

activity

The user activity to be updated.

Discussion

The default implementation of this method puts the document’s fileURL into the NSUserActivity object’s userInfo dictionary with the NSUserActivityDocumentURLKey. NSDocument automatically sets the needsSave property of the NSUserActivity to YES when the fileURL changes.

See Also

Supporting User Activities

userActivity

An object encapsulating a user activity supported by this document.