Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I automatically generate UML diagrams from Objective-C code?

Is there a way to create automatically the UML diagram from the code, in objective-C ?

Cheers, Niels

like image 326
Nielsou Hacken-Bergen Avatar asked Jul 29 '11 13:07

Nielsou Hacken-Bergen


People also ask

How do you create a class diagram automatically?

Right click on Package, Subsystem or Model on the structure tree then select [Auto Create Class Diagram]. The simple Class diagram will be created.

Can Eclipse generate UML diagrams?

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

Can UML generate code?

You can also generate software code from three UML behavioral modeling paradigms: Interaction (Sequence) diagrams. Activity diagrams.

Which UML diagram is most important to start the coding of any software?

Sequence UML Diagram Sequence diagrams are probably the most important UML diagrams among not only the computer science community but also as design-level models for business application development.


1 Answers

Same problem, still looking for answer:

  • Checked Doxygen, but I could generate only documentation and graph fragments. Maybe should spend some quality time with documentation
  • Checked OmniGraffle, output was kind of ok. Run out of free demo period and not going buy full version ONLY for a few occasional graphs. Might be ok, if you have some other uses for it. Not sure, if OmniGraffle "officially" supports that any more

Finally found "objc_dep.py" from GitHub. It's free, fast, simple and works as-is. It generates a kind of "dependency graph" based on imports, which really isn't UML or class diagrams, but was surprisingly close enough.

So that's what I'm using now, but non-actively looking for something "more". Blogged about the objc_dep tool in "Dependency Graph Tool for iOS Projects", might be interesting if you want more info with sample graphs.

...but looking for something to generate real class diagrams.

like image 90
JOM Avatar answered Nov 04 '22 17:11

JOM