President Barack Obama has locked the Democratic nomination, and former Pennsylvania Sen. Rick Santorum's withdrawal from the presidential race has pointed most voters to Mitt Romney as the Republican nominee.

But York County voters must still select delegates to send to the national conventions for both parties.

Those delegates will attend either the Republican National Convention in Tampa Bay, Fla., in August or the Democratic National Convention in Charlotte, N.C., in September.

Those delegates will, on the convention floors, cast the votes that determine whom their parties nominate.

Democrats: Democratic voters must choose eight delegates and one alternate, and there are only eight delegates and one alternate in the race in the 4th Congressional District.

Three delegates are from York County, as is the only alternate. The York delegates are Alaysha Claiborne of York Township, Frank Snyder of Carroll Township, and Salome Johnson of Hallam. The alternate is George Sanders of Red Lion.

York County Democratic Party chair Bob Kefauver said the party will be sending those delegates and the alternate.

"Because there's no competition this year, it's easier than back in 2008, when we had Senators Obama and (Hillary Clinton)," he said. "All of the delegates are committed to Barack Obama."

Republicans: In the contested Republican race, there are 18 delegates and seven alternate-delegate names on the ballot.

Voters in the 4th Congressional District must select four delegates and four alternates, and there are eight York County residents on the ballot for delegate and two on the ballot as alternates.

Bob Wilson, chairman of the York County Republican Party, said the party typically tries to arrange a meeting for selected delegates before the convention so they can reach a consensus.

While some states are "winner take all," Pennsylvania is unique because the delegates "are not obligated to vote one way or the other," he said. "They can vote how they choose."

With delegate votes unrelated to results of the popular vote, The York Dispatch surveyed the York County Republican delegate candidates on their positions. While most said they would cast their vote based on the popular vote, at least two had a candidate preference.

Candidates are as follows:

---Barb Bair, 47, Lower Windsor Township, elected treasurer for York County. "This is a numbers game and I think we really only have one Republican who can deliver the delegate count and that's going to be Romney," she said. Bair said she would probably still support Romney even if he doesn't win the popular vote.

---Marilyn Gillispie, 75, Springfield Township. Retired from a career in business management. Initially a supporter of Rick Santorum, she said after he left the race that she will vote for the candidate winning the popular vote in York County.

---Antonio Grippi, 31, Jackson Township. Manages Genova's restaurant. Grippi said he planned to withdraw from the ballot because of a family emergency but missed the cutoff date. If elected, he would go to the convention and support whoever had the majority in the popular vote, he said.

---Beth Roberts, 44, Dover Township. Teaches in a charter school. Roberts said she would vote for Ron Paul. "I believe he is the only one whose record shows he is a true believer in limited government," she said. "We allow the party to steer us into a candidate, and the fact that Ron Paul doesn't get any acceptance or coverage from the party is what tells me he's the one that's doing the right thing."

---Dave Talley, 47, York Township. Finance director at a car dealership. Talley said he would vote for whoever wins the popular vote. He is also on the ballot as an alternate.

---Ken Wingert, 51, Manchester Township. Pilot for Delta Airlines. "I'll support the candidate who wins the popular vote nationwide, whoever is leading the delegate count nationwide. Obviously, it's almost a foregone conclusion it's going to be Romney, and it's my opinion he has the best chance to defeat President Barack Obama."

---Lisa Wingert, 52, Manchester Township. Substitute teacher in two local school districts and works for Junior Achievement of South Central Pennsylvania. She said she would vote for the candidate who is leading the delegate count nationwide.

---Alternate Charles Wurster, 44, Springettsbury Township. Credit officer at York Traditions Bank. He said he would probably vote for the candidate who wins the popular vote in the state.

-- Reach Christina Kauffman at 505-5436, ckauffman@yorkdispatch.com, or follow her on Twitter at @YDYorkCounty.