mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
29 lines
670 B
Plaintext
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
|