theoretical - Protocols
theoretical - Protocols
- Subject: theoretical - Protocols
- From: Bob Savage <email@hidden>
- Date: Sat, 26 May 2001 13:10:02 -0700
Hi, I'm trying to learn about protocols, but I don't quite understand
something: why are there informal protocols? It seems like the best thing
would be to use the @protocol mechanism since it exists, but even Apple
doesn't do that sometimes (e.g. "NSTableDataSource informal protocol"). Is
this just being lazy, or is there a good reason to forgo the formal protocol
definition?
Another question: IF I were to define a protocol for objects that I get from
3rd parties (via Bundles), where should I define that protocol? Right in my
".h" file for the Class that uses these 3rd party-supplied objects?
thx,
Bob