@@ -169,7 +169,7 @@ open class NotificationCenter: NSObject {
169
169
}
170
170
}
171
171
172
- open func post( name aName: Notification . Name , object anObject: Any ? , userInfo aUserInfo: [ AnyHashable : Any ] ? = nil ) {
172
+ open func post( name aName: NSNotification . Name , object anObject: Any ? , userInfo aUserInfo: [ AnyHashable : Any ] ? = nil ) {
173
173
let notification = Notification ( name: aName, object: anObject, userInfo: aUserInfo)
174
174
post ( notification)
175
175
}
@@ -189,11 +189,11 @@ open class NotificationCenter: NSObject {
189
189
}
190
190
191
191
@available ( * , obsoleted: 4.0 , renamed: " addObserver(forName:object:queue:using:) " )
192
- open func addObserver( forName name: Notification . Name ? , object obj: Any ? , queue: OperationQueue ? , usingBlock block: @escaping ( Notification ) -> Void ) -> NSObjectProtocol {
192
+ open func addObserver( forName name: NSNotification . Name ? , object obj: Any ? , queue: OperationQueue ? , usingBlock block: @escaping ( Notification ) -> Void ) -> NSObjectProtocol {
193
193
return addObserver ( forName: name, object: obj, queue: queue, using: block)
194
194
}
195
195
196
- open func addObserver( forName name: Notification . Name ? , object obj: Any ? , queue: OperationQueue ? , using block: @escaping ( Notification ) -> Void ) -> NSObjectProtocol {
196
+ open func addObserver( forName name: NSNotification . Name ? , object obj: Any ? , queue: OperationQueue ? , using block: @escaping ( Notification ) -> Void ) -> NSObjectProtocol {
197
197
let object = NSObject ( )
198
198
199
199
let newObserver = NSNotificationReceiver ( )
0 commit comments