NSEditorDocumentAttribute property

DartCADynamicRange get NSEditorDocumentAttribute

Implementation

DartNSAttributedStringDocumentAttributeKey get NSEditorDocumentAttribute =>
    objc.NSString.castFromPointer(
      _NSEditorDocumentAttribute.value,
      retain: true,
      release: true,
    );
set NSEditorDocumentAttribute (DartNSAttributedStringDocumentAttributeKey value)

Implementation

set NSEditorDocumentAttribute(
  DartNSAttributedStringDocumentAttributeKey value,
) {
  objc.NSString.castFromPointer(
    _NSEditorDocumentAttribute.value,
    retain: false,
    release: true,
  ).ref.release();
  _NSEditorDocumentAttribute.value = value.ref.retainAndReturnPointer();
}