I've got a very simple problem, but the solution is proving very elusive.
Here's what I have:
typedef { foo, bar, baz} EnumType;
@interface SomeObject: NSObject
@property EnumType someEnumValue;
@end
...and a view with an object_controller and an NSComboBox that should display the string name of the someEnumValue of the [object_controller selection] instance.
I realize that I can't directly access the names of the enum values as strings. I've tried creating an NSArray holding the names of the enum values, and binding the ContentValues property to it - this loads the combo box with the property strings, but I can't find any way to relate the enum value in the selected instance to the values in the combo box.
I've also tried using an NSValueTransformer to translate enum values to NSStrings and vice versa, but for the life of me, I can't get it working: most of these attempts result in a thrown exception.
This trivial task has sucked about three hours out of my life. HELP! Thank you!