<!--
{
  "availability" : [
    "iOS: 4.2.0 -",
    "iPadOS: 4.2.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMIDI",
  "identifier" : "/documentation/CoreMIDI/MIDIObjectGetIntegerProperty(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core MIDI"
    ],
    "preciseIdentifier" : "c:@F@MIDIObjectGetIntegerProperty"
  },
  "title" : "MIDIObjectGetIntegerProperty(_:_:_:)"
}
-->

# MIDIObjectGetIntegerProperty(_:_:_:)

Gets an object’s integer-type property.

```
func MIDIObjectGetIntegerProperty(_ obj: MIDIObjectRef, _ propertyID: CFString, _ outValue: UnsafeMutablePointer<Int32>) -> OSStatus
```

## Parameters

`obj`

The object to query.

`propertyID`

The name of the property to return.

`outValue`

On successful return, the property value.

## Return Value

An `OSStatus` result code.

## Discussion

See [`MIDIObjectRef`](/documentation/CoreMIDI/MIDIObjectRef) for information about properties.

---

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)