Is it still true or I can add objects of any classes (also my own) to directory right now?
If answer for first question is that it is possible, then I wonder what is the correct way to add object to directory and what is the difference (documentation is very pure) between:
a) gDirectory->GetList()->Add();
b) gDirectory->Add();
[quote]Is it still true[/quote]Yes in the sense that you can delegate ownership of your object to a TDirectory object if and only if they inherit from TObject.
However you can store in a file (via a TDirectory or TFile object) any object type (use WriteObject).