@@ -45,7 +45,7 @@ public final class XCPlaygroundPage {
45
45
/// - note: This function has been deprecated.
46
46
@available ( * , deprecated) public func captureValue< T> ( value: T , withIdentifier identifier: String ) {
47
47
if let value = value as? AnyObject {
48
- NotificationCenter . default. post ( name: " XCPCaptureValue " as NSNotification . Name , object: self , userInfo: [ AnyHashable ( " value " ) : value, AnyHashable ( " identifier " ) : identifier as AnyObject ] )
48
+ NotificationCenter . default. post ( name: " XCPCaptureValue " as NSString as NSNotification . Name , object: self , userInfo: [ AnyHashable ( " value " ) : value, AnyHashable ( " identifier " ) : identifier as AnyObject ] )
49
49
}
50
50
}
51
51
@@ -62,7 +62,7 @@ public final class XCPlaygroundPage {
62
62
@available ( * , deprecated, message: " Use 'PlaygroundPage.current.needsIndefiniteExecution' from the 'PlaygroundSupport' module instead " )
63
63
public var needsIndefiniteExecution : Bool = false {
64
64
didSet {
65
- NotificationCenter . default. post ( name: " XCPlaygroundPageNeedsIndefiniteExecutionDidChangeNotification " as NSNotification . Name , object: self , userInfo: [ AnyHashable ( " XCPlaygroundPageNeedsIndefiniteExecution " ) : needsIndefiniteExecution as AnyObject ] )
65
+ NotificationCenter . default. post ( name: " XCPlaygroundPageNeedsIndefiniteExecutionDidChangeNotification " as NSString as NSNotification . Name , object: self , userInfo: [ AnyHashable ( " XCPlaygroundPageNeedsIndefiniteExecution " ) : needsIndefiniteExecution as AnyObject ] )
66
66
}
67
67
}
68
68
@@ -72,7 +72,7 @@ public final class XCPlaygroundPage {
72
72
@available ( * , deprecated, message: " Use 'PlaygroundPage.current.finishExecution()' from the 'PlaygroundSupport' module instead " )
73
73
public func finishExecution( ) -> Never {
74
74
// Send a message to Xcode requesting that we be killed.
75
- NotificationCenter . default. post ( name: " XCPlaygroundPageFinishExecutionNotification " as NSNotification . Name , object: self , userInfo: nil )
75
+ NotificationCenter . default. post ( name: " XCPlaygroundPageFinishExecutionNotification " as NSString as NSNotification . Name , object: self , userInfo: nil )
76
76
77
77
// Sleep for a while to let Xcode kill us.
78
78
for _ in 1 ... 10 {
@@ -116,7 +116,7 @@ public final class XCPlaygroundPage {
116
116
userInfo = [ : ]
117
117
}
118
118
119
- NotificationCenter . default. post ( name: " XCPlaygroundPageLiveViewDidChangeNotification " as NSNotification . Name , object: self , userInfo: userInfo)
119
+ NotificationCenter . default. post ( name: " XCPlaygroundPageLiveViewDidChangeNotification " as NSString as NSNotification . Name , object: self , userInfo: userInfo)
120
120
}
121
121
}
122
122
}
0 commit comments