Yes, that was "Farewell, My Lovely". Originally a book, by Raymond Chandler. Made into a movie - 1975, starring Robert Mitchum. The plot includes a visit to one of the offshore gambling boats in St. Monica Bay.