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

# importsGraphics

A Boolean that controls whether the receiver allows the user to import files by dragging.

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

## Discussion

If `flag` is <doc://com.apple.documentation/documentation/Swift/true>, the receiver allows the user to import files by dragging; if `flag` is <doc://com.apple.documentation/documentation/Swift/false>, it doesn’t.

If the receiver is set to accept dragged files, it’s also made a rich text object. Subclasses may or may not accept dragged files by default.

---

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)