Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create class diagram from already existent iphone code

does anybody know, how i could create automatically a UML class diagram from an already existent iphone project. Is it possible?

Thanks in advance.

like image 495
Simon D. Avatar asked Mar 11 '10 11:03

Simon D.


People also ask

How can I automatically generate a UML diagram from a Java project?

In the Project tool window, right-click a package for which you want to create a diagram and select Diagrams | Show Diagram Ctrl+Alt+Shift+U ). In the list that opens, select Java Class Diagram. IntelliJ IDEA generates a UML diagram for classes and their dependencies.

Can IntelliJ generate class diagram?

IntelliJ IDEA Ultimate allows you to generate UML diagrams. You can use ⌥⇧⌘U (macOS) or Ctrl+Alt+Shift+U (Windows/Linux) to generate a UML diagram for your code which can help you and your team to read and understand the codebase.

Can Eclipse generate UML diagrams?

You can create UML project for any of your Java project in Eclipse.


2 Answers

Yes, you can use Doxygen:

  1. Install Doxygen (with MacPorts: sudo port install doxygen).

  2. Get a script like this and change the first lines to match your configuration.

  3. Download these files and edit the Doxygen file so it says HAVE_DOT=YES and UML_LOOK=YES.

It will then generate and install a docset that you can read from the documentation browser, or just right click and show contents from Finder.


Or, if you want a graph of dependencies check: https://github.com/nst/objc_dep It uses graphviz.

like image 188
Jano Avatar answered Oct 24 '22 17:10

Jano


See also OmniGraffle of all things. If you open an Xcode project with it, it will generate a full class diagram. It can be fairly overwhelming for a large project.

like image 41
Rob Napier Avatar answered Oct 24 '22 17:10

Rob Napier