Representing Objective C Protocols on UML class diagrams
Posted
by joec
on Stack Overflow
See other posts from Stack Overflow
or by joec
Published on 2010-04-12T20:29:45Z
Indexed on
2010/04/12
20:33 UTC
Read the original article
Hit count: 443
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.
© Stack Overflow or respective owner