<!--
{
  "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

[`QCPortAttributeTypeKey`](/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).

[`QCPortAttributeNameKey`](/documentation/Quartz/QCPortAttributeNameKey)

The key for the port name.

[`QCPortAttributeMinimumValueKey`](/documentation/Quartz/QCPortAttributeMinimumValueKey)

The key for the port minimum value.

[`QCPortAttributeMaximumValueKey`](/documentation/Quartz/QCPortAttributeMaximumValueKey)

The key for the port maximum value.

[`QCPortAttributeDefaultValueKey`](/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).

[`QCPortAttributeMenuItemsKey`](/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)