Top "Protocols" questions

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

Data URI scheme and Internet Explorer 9 Errors

I'm having a problem using the RFC 2397 data url scheme with IE versions 6-9. My sample code below works without …

internet-explorer protocols rfc data-url
How to map a custom protocol to an application on the Mac?

I'm trying to register a custom protocol to an application on the Mac, i.e: User clicks on link with "…

macos protocols protocol-handler custom-url-protocol
Get live stream from Network IP camera that support ONVIF protocol?

I have network IP camera(Canon VB-M40). This camera support ONVIF protocol. I am implementing its ONVIF functionality in windows …

stream camera video-streaming protocols onvif
Can I have an init func in a protocol?

When I try to implement my protocol this way: protocol Serialization { func init(key keyValue: String, jsonValue: String) } I get …

swift initialization protocols swift-protocols
Examples of Delegates in Swift

I have been trying to learn how delegation with protocols work. I understood everything, but I can't think of when …

swift design-patterns delegates protocols delegation
How to define initializers in a protocol extension?

protocol Car { var wheels : Int { get set} init(wheels: Int) } extension Car { init(wheels: Int) { self.wheels = wheels } } on self.…

swift initialization swift2 protocols swift-extensions
Xcode: Possible to auto-create stubs for methods required by Protocol interface?

Coming from an Eclipse / Java background, one of my favorite features is the ability to quickly stub out all the …

objective-c xcode ide interface protocols
Protocol func returning Self

I have a protocol P that returns a copy of the object: protocol P { func copy() -> Self } and …

swift protocols subclassing swift-protocols
How to check if a website has HTTP/2 protocol support

There are a lot of topics about the HTTP/2 protocol, but I wonder if there is a working website with …

protocols http2 browser-support
Swift Equatable on a protocol

I don't think this can be done but I'll ask anyway. I have a protocol: protocol X {} And a class: …

ios swift protocols equatable