Declaration

func setUserData(_ value: Any?, forKey key: String)

Declaration

- (void) setUserData:(id) value forKey:(NSString *) key;

Declaration

setUserData_forKey_(value: object, key: str)

Discussion

Pass nil as the value to remove existing user data for the key. This registers undo and marks the document as changed.

See Also

User Data