Files
swift-mirror/apinotes/Foundation.apinotes
Doug Gregor 0e40128d1a [Clang importer] Use Clang swift_bridge attribute for bridging.
When an Objective-C class type is annotated with the swift_bridge
value type, bridge it to the named type. Use API notes on Foundation
rather than special cases.

For Objective-C classes where bridging was baked into the Clang
importer (NSString, NSArray, NSDictionary, NSSet), add API notes to
put the appropriate swift_bridge attribute on these Objective-C
classes.

Note: requires Clang update.
2016-03-10 23:10:28 -08:00

29 lines
670 B
Plaintext

---
Name: Foundation
Classes:
- Name: NSArray
SwiftBridge: 'Swift.Array'
- Name: NSDictionary
SwiftBridge: 'Swift.Dictionary'
- Name: NSSet
SwiftBridge: 'Swift.Set'
- Name: NSString
SwiftBridge: 'Swift.String'
- Name: NSDistributedNotificationCenter
Methods:
- Selector: 'notificationCenterForType:'
MethodKind: Class
FactoryAsInit: C
- Name: NSCoder
Methods:
- Selector: 'decodeObjectOfClass:forKey:'
MethodKind: Instance
Availability: nonswift
AvailabilityMsg: use generic 'decodeObjectOfClass(_:forKey:)'
- Name: NSProcessInfo
Methods:
- Selector: processInfo
MethodKind: Class
NullabilityOfRet: N
FactoryAsInit: C