kMIDI… errors bridge to swift as Int

Originator:GriotSpeak
Number:rdar://21524773 Date Originated:24-Jun-2015 08:51 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A121l)
Classification:Enhancement Reproducible:Always
 
Summary:
The errors below bridge into Swift as Int

kMIDIInvalidClient
kMIDIInvalidPort
kMIDIWrongEndpointType
kMIDINoConnection
kMIDIUnknownEndpoint
kMIDIUnknownProperty
kMIDIWrongPropertyType
kMIDINoCurrentSetup
kMIDIMessageSendErr
kMIDIServerStartErr
kMIDISetupFormatErr
kMIDIWrongThread
kMIDIObjectNotFound
kMIDIIDNotUnique
kMIDINotPermitted 

Expected Results:
I expect the to come in as OSStatus or their own type


Regression:
OSStatus used to import as Int in Swift 1.2

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!