Representing Objective C Protocols on UML class diagrams
- by joec
How should i correctly reference protocols on a UML class diagram?
For example my ListViewController conforms to the UITableViewDataSource and UITableViewDelegate protocols... where do i put the cellForRowAtIndexPath or numberOfRowsInSection methods? ... in ListViewController where they are implemented or in something like this:
<<Protocol>>
UITableViewDataSource
---------------------
---------------------
-numberOfRowsInSection
If i did the latter what would be the association between the ListViewController class and the protocol box be? All i have to show is how i hook into Cocoa Touch some how.
Thanks.