In a frying pan (thick bottom works best, the thin bottom tends to burn the candy quickly) place sugar and butter over high heat.
Cook until it reaches about 300 degrees, it goes so quickly as there is not a lot of candy in this batch.
Remove the pan from the heat, pour in nuts and add rosemary and toss with a wooden spoon or silicone spatula until the nuts are completely coated.
Spread on a parchment-lined baking sheet and separate the nuts so they can cool separately without having them all clump together. I use two spatulas to spread them out.
Salt the nuts.
They cook rather quickly.
Once completely cooled place in a candy dish, or wrap for a gift.