snippet for nsenum.

Please check out this snippet and let me know if you would like to merge into your master.