<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextView/importsGraphics",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextView(py)importsGraphics"
  },
  "title" : "importsGraphics"
}
-->

# importsGraphics

A Boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to import files by dragging.

```
var importsGraphics: Bool { get set }
```

## Discussion

<doc://com.apple.documentation/documentation/Swift/true> to allow the user to import files by dragging onto the text views sharing the receiver’s layout manager, <doc://com.apple.documentation/documentation/Swift/false> otherwise.

Text views that are set to accept dragged files are also set to allow rich text. By default, text views don’t accept dragged files but do allow rich text.

## See Also

  <doc://com.apple.documentation/documentation/Foundation/NSMutableAttributedString/insert(_:at:)>

  <doc://com.apple.documentation/documentation/Foundation/NSAttributedString/init(attachment:)>

[`textStorage`](/documentation/AppKit/NSTextView/textStorage)

The receiver’s text storage object.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)