There used to be "freewheel vises" commercially available that were basically two adjustable pins on a base. The pins went into the gaps between opposing teeth on the largest cog and held the whole thing in place while a single chainwhip was used to unthread the top one or two cogs. It sounds like you improvised the same thing.