As Good as It Gets (1997)
As Good as It Gets is a 1997 American romantic comedy film directed by James L. Brooks and produced by Laura Ziskin. It stars Jack Nicholson as a misanthropic, obsessive-compulsive novelist, Helen Hunt as a single mother with an asthmatic son, and Greg Kinnear as a gay artist. The screenplay was written by Mark Andrus and James L. Brooks.
More at Wikipedia.