Mastering macOS Programming
上QQ阅读APP看书,第一时间看更新

Class considerations

When declaring a class to conform to a protocol, any superclass declarations must come first:

class MyClass: NSObject, ClassyProtocol 
{
func addClassToClassesList()
{
//
}
}