Skip to content

Instantly share code, notes, and snippets.

@schneiderandre
Created July 11, 2014 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schneiderandre/c5a5ce95b4f6e1b0ea9b to your computer and use it in GitHub Desktop.
Save schneiderandre/c5a5ce95b4f6e1b0ea9b to your computer and use it in GitHub Desktop.
Once you use ServiceProtocol as an input parameter in the ServiceProtocolDelegate method, Xcode crashes at compile time.
import Cocoa
protocol ServiceProtocolDelegate {
func service(service: ServiceProtocol, didLoadItems items: [String])
}
protocol ServiceProtocol {
func getData()
var delegate: ServiceProtocolDelegate {get set}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment