Binding and NSPopupButton
Binding and NSPopupButton
- Subject: Binding and NSPopupButton
- From: David Alter <email@hidden>
- Date: Fri, 21 Jul 2006 15:49:30 -0700
I'm using binding on a NSPopupButton, and it works great. I have the
binding connected to the selected value and using Shared User
Defaults. The popup menu is used to set a preference. When my
application is running I can lookup the key and I get the string of
the selected item in that popup menu. Seeing how the interface will
be getting localized at some point that string is not really what I
want stored in the Shared User Defaults. It would be far more useful
to have the tag of the menu item that was selected. Then once things
get localized it will still work.
In IB shows binding for the tag but it is disabled. Or should I be
using a Value Transformer? Does anyone have a nice clean way to do this?
thank for the help
-dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden