| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
| References: | |
| >theoretical - Protocols (From: Bob Savage <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.