Skip to content

Instantly share code, notes, and snippets.

@0xdevalias
Last active December 14, 2015 16:19
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 0xdevalias/5113908 to your computer and use it in GitHub Desktop.
Save 0xdevalias/5113908 to your computer and use it in GitHub Desktop.
Some info/links I found useful in regards to iOS Delegates, Delegation Chaining and Notifications

Some references I found useful/interesting

From Nimbus

My Random Musings

  • Generic class/protocol type thing that can be implemented to forward any delegates?
    • Allow chaining chains to chains
      • [foo chainsToDelegate:self.delegate] (This will call chainsToDelegate on foo (implementing it's delegate actions), returning a 'delegation object' (id ?)
      • This would let us create a chain of delegates
      • Eg. self.delegate = [foo chainToDelegate:[bar chainToDelegate:[baz chainToDelegate:self.delegate]]];
      • May or may not be actually useful in the real world (but sounds cool to my mind atm!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment