<!--
{
  "documentType" : "article",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/input-and-output-port-attributes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Input and Output Port Attributes"
}
-->

# Input and Output Port Attributes

Attributes for input and output ports.

## Topics

### Constants

[`let QCPortAttributeTypeKey: String`](/documentation/Quartz/QCPortAttributeTypeKey)

The key for the port type. The associated value can be of any of the following constants: [`QCPortTypeBoolean`](/documentation/Quartz/QCPortTypeBoolean), [`QCPortTypeIndex`](/documentation/Quartz/QCPortTypeIndex), [`QCPortTypeNumber`](/documentation/Quartz/QCPortTypeNumber), [`QCPortTypeString`](/documentation/Quartz/QCPortTypeString), [`QCPortTypeColor`](/documentation/Quartz/QCPortTypeColor), [`QCPortTypeImage`](/documentation/Quartz/QCPortTypeImage), or [`QCPortTypeStructure`](/documentation/Quartz/QCPortTypeStructure).

[`let QCPortAttributeNameKey: String`](/documentation/Quartz/QCPortAttributeNameKey)

The key for the port name.

[`let QCPortAttributeMinimumValueKey: String`](/documentation/Quartz/QCPortAttributeMinimumValueKey)

The key for the port minimum value.

[`let QCPortAttributeMaximumValueKey: String`](/documentation/Quartz/QCPortAttributeMaximumValueKey)

The key for the port maximum value.

[`let QCPortAttributeDefaultValueKey: String`](/documentation/Quartz/QCPortAttributeDefaultValueKey)

The key for the port default value. You can use this key only for value ports (Boolean, Index, Number, Color and String).

[`let QCPortAttributeMenuItemsKey: String`](/documentation/Quartz/QCPortAttributeMenuItemsKey)

The key for the menu items.



---

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)