Skip to content

Instantly share code, notes, and snippets.

@samdmarshall
Last active August 29, 2015 13: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 samdmarshall/9653014 to your computer and use it in GitHub Desktop.
Save samdmarshall/9653014 to your computer and use it in GitHub Desktop.
Class definitions in the Objective-C 2 runtime have a "base protocols" list which lists a number of protocol definitions, each of those defintions have another protocol list, which in turn defines another set of protocols.
I'm wondering if there is any restriction on how deep this "recursive" list behavior can go.
Also if the way this works is if class Foo conforms to protocol FooDelegate, and FooDelegate definition conforms to BazProtocol and BarProtocol, if they are defined as follows:
Class Foo:
...
protocol list -> (count: 1) [ FooDelegate ]
...
FooDelegate:
...
protocol list -> (count: 2) [ BazProtocol, BarProtocol ]
...
BazProtocol:
...
protocol list -> (count: 1) [ NSObject ]
...
BarProtocol:
...
protocol list -> (count: 0)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment