The event highlighted the president's sometimes-tense relationship with the press.