Warum tack, ein Protokoll NSObject um eine Protokoll-Implementierung

Ich gesehen habe einige code, die der folgenden ähnelt:

@protocol MyProtocol <NSObject>
//write some methods.
@end

Gibt es einen bestimmten Grund, warum MyProtocol entspricht der NSObject-Protokoll? Ist das nicht eher redundant, wenn Sie etwas tun, wie zum Beispiel:

id <MyProtocol> foo; //foo here conforms to NSObject AND MyProtocol?

Nur neugierig, was die Logik ist.

InformationsquelleAutor Coocoo4Cocoa | 2009-03-25
Schreibe einen Kommentar