Top "Protocols" questions

A common means for (un)related objects to communicate with each other.

How to fix "Protocol Not Implemented"

When I make a new controller called TestController, I insert <UITableViewDelegate,UITableViewDataSource,UITextFieldDelegate,UISearchBarDelegate> to the interface of …

objective-c xcode cocoa-touch protocols compiler-warnings
Refreshing data in a UIViewController after dismissing its presented modal view controller via delegate

I have the delegate working as the data is being passed from the modal to the presenting view controller. But …

ios objective-c delegates protocols presentmodalviewcontroller
Auto property synthesis will not synthesize property declared in protocol -- which one?

It's nice that it tells that there is such a property that I have to synthesize, but is there any …

ios objective-c protocols synthesize
what's the best open protocol for chat room software?

I'm comparing between IRC, XMPP and a third proprietary server I have. what are the pros and cons of each …

protocols xmpp chat social-networking irc
shouldStartLoadWithRequest is never called

I've researched and researched and still don't understand why shouldStartLoadWithRequest is never called. My page loads fine and some of …

ios methods protocols uiwebviewdelegate
Can a category implement a protocol in Objective C?

I have a category on NSDate and it would be convenient if it could implement a protocol I previously created. …

objective-c cocoa protocols categories
How to pass one SwiftUI View as a variable to another View struct

I'm implementing a very custom NavigationLink called MenuItem and would like to reuse it across the project. It's a struct …

swift generics view protocols swiftui
How to implement a network protocol?

Here is a generic question. I'm not in search of the best answer, I'd just like you to express your …

java c++ protocols
How do I implement Swift's Comparable protocol?

How do I use the Comparable protocol in Swift? In the declaration it says I'd have to implement the three …

compare protocols swift
Extend existing protocols to implement another protocol with default implements

Is it possible to add protocol compliance to a different protocol by way of an extension? For instance we would …

swift protocols protocol-extension