Obama's remarks came after a secretly taped and newly released video showed the Republican presidential nominee describing "47 percent of the people" as Obama supporters who depend on government and believe they are victims.
"My expectation is that if you want to be president, you have to work for everyone, not just for some," Obama said in a taping of the "Late Show" with David Letterman.
It was Obama's first response to the Romney video, which roiled Romney's campaign and put him on the defensive about his views about nearly half the nation. The president appeared on the TV show before a night of fundraising in New York City.
In the video, taken during a May fundraiser and posted online Monday, Romney said it is not his job "to worry about those people." He was referring to what he called Obama's locked-in supporters who believe they are "entitled to health care, to food, to housing, to you name it."
Romney has since said he made his point inelegantly in trying to describe differing visions for the nation.
"There are not a lot of people out there who think they are victims" or simply entitled, Obama said.
Obama said people understand that the presidential candidates will make mistakes on the campaign trail. He said that includes one he regrets from 2008, when audio from one of his own private fundraisers had him saying that some residents of depressed rural areas get bitter and "cling to guns or religion or antipathy to people who aren't like them."
Having said that, Obama added: "One thing I've learned as president is that you represent the entire country."
The president and Letterman also bantered over lighter subjects, with Obama joking about the Florida pizza restaurant owner who lifted him off the ground in a bear hug last week. "I think he fixed something in my back," Obama said.
The two men exchanged compliments on their appearances.
"You look good," Obama said.
"You haven't seen me naked," Letterman said.
Obama replied: "We're going to keep it that way."
Later, Obama spoke to about 200 people at a fundraiser at the Waldorf Astoria Hotel. Tickets for the event started at $12,500 per family.
He ended the night at a fundraiser hosted by pop star Beyonce and her husband Jay-Z at the rap mogul's 40/40 Club. About 100 supporters paid $40,000 per person to attend the party, which was expected to raise about $4 million for Obama's campaign and Democratic Party organizations.
Beyonce, dressed in a red dress, said she and her husband support Obama because he shares their vision for America. She said the two were "pleased and proud" to host the event.
Obama praised "Jay" and "B'' and said first lady Michelle Obama and daughters Sasha and Malia were upset with him because they were unable to go on the trip. Normally they are just as happy to skip campaign events, he said.
Obama called Beyonce a role model for his daughters and other young people, and said she and Jay-Z are "generous" supporters of his campaign.
Obama said he and Jay-Z share a special bond, beyond interest in basketball: "We both have daughters and our wives are more popular than we are."
Copyright 2012 The Associated Press.