No fictional detective has covered Barcelona more intensively or chronicled modern Spain more thoroughly than Manuel Vázquez Montalbán’s sophisticated gourmand Pepe Carvalho. The novels are very popular, they feature substantial amounts of food, sex, and politics, and there are plenty of them. There have been reprints and they are easy to find online, if not in your local library. Yes, the detective gets to travel in some cases, for example, to Buenos Aires.
There is a very helpful appreciation of Vázquez Montalbán written soon after his death in 2003 here.
Other notable fiction with a Barcelona setting includes:
Increasing interest in Catalan cuisine is reflected in new cookbooks, although there are some classics in English, such as Irving Davis' . There was an appreciation of the book in The Telegraph. Another is by Colman Andrews. Very recent cookbooks include The Catalan Kitchen: From mountains to city and sea – recipes from Spain's culinary heart by Emma Warren; Catalonia: Spanish Recipes from Barcelona and Beyond; and Catalan Food: Culture and Flavors from the Mediterranean. For an older example, stop by the Kislak Center when on campus and ask to see the facsimile of a 14th century Catalan cookbook Llibre d'aparellar de menjar.