Instance Method
setUserData(_:forKey:) setUserData:forKey: setUserData_forKey_
Adds something to the fonts userData.
Declaration
func setUserData(_ value: Any?, forKey key: String)Declaration
- (void) setUserData:(id) value forKey:(NSString *) key;Declaration
setUserData_forKey_(value: object, key: str)Parameters
valueThe object should be able to serialize to a plist. If they are not, they should return all infos to store in description (as String).
keyPlease 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.