interface - what is protocol in objective-c -


possible duplicate:
what protocol

hi,

how use protocol in objective-c ? advantage of .?

thank , regards+

protocols have many advantages. idea provide way classes share same method , property declarations without inheriting them common ancestor. useful in objective-c when using delegation pattern, on ios , mac os sdks rely heavily. there's plenty of information out there on subject, including overview in apple's developer documentation.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -