Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to browse protocols #12

Closed
wants to merge 2 commits into from
Closed

Conversation

daniel-c
Copy link

@daniel-c daniel-c commented Mar 4, 2015

These changes add support for browsing protocol. This is done as follow:

  • Extending the model to include protocols: ClassStub can represent a class or a protocol, ClassDisplay is extended to display protocol details.
  • OS X app list protocols in the 'flat list' or 'inheritance' view', but not in the 'images' view, as we cannot get the list of protocols defined by an library through the obj-c api. Protocols are displayed with a P icon instead of the C icon for classes.
  • iPhone app list classes and protocols in 2 separate section in the tree view, and with a toggle button in the list view. Framework do not display protocols for reason above. The web browser view displays classes and protocols in 2 separate sections.

Note: an undocumented function is used in OS X 10.8 and iOS 6 and above to get detailed parameters types for protocols methods: _protocol_getMethodTypeEncoding. So in many cases, protocols method parameters are displayed with actual types instead of (id).

@nst
Copy link
Owner

nst commented Mar 4, 2015

awesome contribution!! thank you very much

@nst nst closed this Mar 4, 2015
@ceekay1991 ceekay1991 mentioned this pull request Jun 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants