Given this declaration in NSTextView.h .... typedef enum _NSSelectionAffinity { NSSelectionAffinityUpstream = 0, NSSelectionAffinityDownstream = 1 } NSSelectionAffinity; If I know that a value is <NSS>election<A>ffinity and equal to 1, is there a way to map this back to #$NSSelectionAffinityDownstream ? Thanks :alex