AppKit allows Python programs on a Mac to use ObjectiveC classes. I am not very familiar with ObjectiveC, but I want to access the NSSound class using AppKit in order to create an audio player.
My player should perform some action, such as loading the next item from the playlist, when the current audio finishes playing. There is a method named sound:didFinishPlaying:, which is called at that moment, I suppose. According to the documentation, a delegate has to be set which receives this method call.
Can somebody help me translate that to Python/AppKit? How can I implement a delegate in Python and let it receive the didFinishPlaying notification?