@@ -1203,7 +1203,7 @@ extension NSArray {
1203
1203
///
1204
1204
/// Discussion: After an immutable array has been initialized in
1205
1205
/// this way, it cannot be modified.
1206
- @objc ( _swiftInitWithArray_NSArray : )
1206
+ @nonobjc
1207
1207
public convenience init ( array anArray: NSArray ) {
1208
1208
self . init ( array: anArray as Array )
1209
1209
}
@@ -1216,7 +1216,7 @@ extension NSString {
1216
1216
/// - Returns: An `NSString` object initialized by copying the
1217
1217
/// characters from `aString`. The returned object may be different
1218
1218
/// from the original receiver.
1219
- @objc ( _swiftInitWithString_NSString : )
1219
+ @nonobjc
1220
1220
public convenience init ( string aString: NSString ) {
1221
1221
self . init ( string: aString as String )
1222
1222
}
@@ -1229,7 +1229,7 @@ extension NSSet {
1229
1229
/// - Returns: An initialized objects set containing the objects from
1230
1230
/// `set`. The returned set might be different than the original
1231
1231
/// receiver.
1232
- @objc ( _swiftInitWithSet_NSSet : )
1232
+ @nonobjc
1233
1233
public convenience init ( set anSet: NSSet ) {
1234
1234
self . init ( set: anSet as Set )
1235
1235
}
@@ -1242,7 +1242,7 @@ extension NSDictionary {
1242
1242
/// - Returns: An initialized dictionary—which might be different
1243
1243
/// than the original receiver—containing the keys and values
1244
1244
/// found in `otherDictionary`.
1245
- @objc ( _swiftInitWithDictionary_NSDictionary : )
1245
+ @nonobjc
1246
1246
public convenience init ( dictionary otherDictionary: NSDictionary ) {
1247
1247
self . init ( dictionary: otherDictionary as Dictionary )
1248
1248
}
@@ -1342,6 +1342,7 @@ extension NSCoder {
1342
1342
return NS_Swift_NSCoder_decodeObjectOfClassesForKey ( self as AnyObject , classesAsNSObjects, key as AnyObject , nil ) . map { $0 as Any }
1343
1343
}
1344
1344
1345
+ @nonobjc
1345
1346
@available ( OSX 10 . 11 , iOS 9 . 0 , * )
1346
1347
public func decodeTopLevelObject( ) throws -> Any ? {
1347
1348
var error : NSError ?
@@ -1355,6 +1356,7 @@ extension NSCoder {
1355
1356
fatalError ( " This API has been renamed " )
1356
1357
}
1357
1358
1359
+ @nonobjc
1358
1360
@available ( OSX 10 . 11 , iOS 9 . 0 , * )
1359
1361
public func decodeTopLevelObject( forKey key: String ) throws -> AnyObject ? {
1360
1362
var error : NSError ?
@@ -1382,11 +1384,13 @@ extension NSCoder {
1382
1384
return result as? DecodedObjectType
1383
1385
}
1384
1386
1387
+ @nonobjc
1385
1388
@available ( * , unavailable, renamed: " decodeTopLevelObject(of:forKey:) " )
1386
1389
public func decodeTopLevelObjectOfClasses( _ classes: NSSet ? , forKey key: String ) throws -> AnyObject ? {
1387
1390
fatalError ( " This API has been renamed " )
1388
1391
}
1389
1392
1393
+ @nonobjc
1390
1394
@available ( OSX 10 . 11 , iOS 9 . 0 , * )
1391
1395
public func decodeTopLevelObject( of classes: [ AnyClass ] ? , forKey key: String ) throws -> Any ? {
1392
1396
var error : NSError ? = nil
@@ -1412,6 +1416,7 @@ internal func NS_Swift_NSKeyedUnarchiver_unarchiveObjectWithData(
1412
1416
1413
1417
extension NSKeyedUnarchiver {
1414
1418
@available ( OSX 10 . 11 , iOS 9 . 0 , * )
1419
+ @nonobjc
1415
1420
public class func unarchiveTopLevelObjectWithData( _ data: NSData ) throws -> AnyObject ? {
1416
1421
var error : NSError ?
1417
1422
let result = NS_Swift_NSKeyedUnarchiver_unarchiveObjectWithData ( self , data as AnyObject , & error)
0 commit comments