You should look into IIFYM style dieting.
The more you restrict yourself in your food choices while dieting, the stronger & longer lasting the cravings will eventually be.
The key, as halfwit suggested with the cheesecake, is to learn to incorporate the food choices that you enjoy within your set macros. Cheat meals and such are designed for this very purpose.
Following a set diet that involves food sources that you never eat, or don't plan on eating once the diet is over, is a recipe for failure if the goal is to maintain your new weight. If you enjoy heavy bulking and cutting sessions, such as contest prep, then that's another story.
IMO, the main reason most of society fails with dieting programmes is because the programme itself forces them to do things they have absolutely NO intension of doing for the longer term. This creates a TEMPORARY solution for TEMPORARY weight loss that does nothing to permanently change long term habits.
IIFYM is designed to allow you to eat the same sort of foods you normally do, but smaller portions with some macro adjustments.
Halfwit is also 100% correct about surrounding yourself with the right people when dieting (as much as you can anyway).
When I start dieting in the new year, I will be surrounded with women doing bikini/figure/physique contest prep. Nothing is more motivating to me than having beautiful women dieting with me, training with me & having the same mindset as me