I have noticed that people who crave sweets generally tend to wait too long to eat, or eat too few carbs in general. Sweets give you an instant shot of carbs/sugars, so when you have deprived yourself the body craves the sweets. The best way to fight against craving sweet foods is to eat well balanced meals, and more frequent meals. Although, it does seem that some people no matter what just love sweets no matter what.
As kind of a side note I used to be able to pass up dessert with no problem, but I also drank a lot of coca cola. When I stopped drining coke mostly for caffeine reasons, I started eating tons more chocolate (which I had never craved much before, I am sure part of that is because chocolate has caffeine) and eventually more cakes and cookies. Honestly, I have gained weight since I quit soda, at least the soda did not have fat and cholesterol. Not that I think Coke is good way to go to lose weight, but it made me realize that a certain amount of carbs are probably a good thing, and keeping blood sugar study very important.
I do agree that the less sugar you eat in general the less you crave very sweet things, just don’t do a strict no carb diet, I have never agreed with that method of dieting. But, then, I am not a medical professional, it is just my opinion. .