They can be either set up as leaseholds as you have suggested, or they can be titled as a normal sub-division would, but with a covenant in place that restricts the use of the properties to say residents of 55yrs or older.
I have built several of these in the past for a property developer and...