 David O. Selznick (qv) wanted much of the film to be based on his  experiences in psychotherapy. He even brought his psychotherapist in  on the set to be a technical advisor. Once when she disputed a point  of fact with Alfred Hitchcock (I) (qv) on how therapy works,  Hitchcock said, "My dear, its only a movie."