post(name:object:)
Creates a notification, and posts it to the receiver.
Declaration
func post(name aName: NSNotification.Name, object anObject: String?)Parameters
- aName:
Name of the notification to post. Must not be
nil. - anObject:
Sender of the notification. May be
nil.
Discussion
This method invokes postNotificationName(_:object:userInfo:deliverImmediately:) with userInfo:nil deliverImmediately:NO.