In Swift, what is the equivalent of @selector(allDistributedNotifications:)
in string
[NSDistributedNotificationCenter defaultCenter] addObserver:self
selector:@selector(allDistributedNotifications:)
name:@"com.apple.iTunes.playerInfo"
object:@"com.apple.iTunes.player"];
I tried the following, but I get an error message
NSDistributedNotificationCenter.defaultCenter().addObserver(self, selector: Selector(allDistributedNotifications), name: "com.apple.iTunes.playerInfo", object: "com.apple.iTunes.player")