Declaration

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

Declaration

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

Declaration

setUserData_forKey_(value: object, key: str)

Parameters

value

The object should be able to serialize to a plist. If they are not, they should return all infos to store in description (as String).

key

Please use an unique key that gives some indication who put it there (e.g. prefix it with your name or project).

Discussion

This also triggers undo/document dirty state.