I have an SKScene that makes itself an observer of a notification named " showPhotoForMoodNotification" with an associated selector called : "eventListenerDidReceiveNotification:" .
The eventListenerDidReceiveNotification is declared as a function that can throw and exception as follows:
func eventListenerDidReceiveNotification(notif:NSNotification) throws { }
But I noticed that when the notification is received by the SKScene, the compiler doesn't associate the signature of this "eventListenerDidReceiveNotification" method with the signature of the "selector" in the addObserver called, which looks like thisL
NSNotificationCenter.defaultCenter().addObserver(self, selector: "eventListenerDidReceiveNotification:", name: "showPhotoForMoodNotification", object: nil)
So, my guess is that the "throws" part of the method's signature is not compatible with the "selector" part of the nsnotification "addObserver" call, because if I eliminate the "throws" part from the "eventListenerDidReceiveNotification" method declaration, things work.
So do I have to add anything more to the addObserver "selector" part to describe this method as a method that throws an exception?
thanks