<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/QCPlugIn/attributesForPropertyPort(withKey:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(cs)QCPlugIn(cm)attributesForPropertyPortWithKey:"
  },
  "title" : "attributesForPropertyPort(withKey:)"
}
-->

# attributesForPropertyPort(withKey:)

Returns a dictionary that contains strings for the user interface that describe the optional attributes for ports created from properties.

```
class func attributesForPropertyPort(withKey key: String!) -> [AnyHashable : Any]!
```

## Parameters

`key`

The name of the property.

## Return Value

A dictionary that contains key-value pairs for the port’s attributes. The keys must be one or more of the constants defined in [Input and Output Port Attributes](/documentation/Quartz/input-and-output-port-attributes).

## Discussion

It’s recommended that you implement this method to enhance the experience of those who use your custom patch. The attributes appear in a help tag when the user hovers a pointer over the property port on your custom patch. At a minimum, you should provide a user-readable name for the port. It might also be helpful to provide default, minimum, and maximum values for the port.

---

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)