FROM : David Alter
DATE : Sat Jul 22 00:49:30 2006
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
DATE : Sat Jul 22 00:49:30 2006
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
| Related mails | Author | Date |
|---|---|---|
| David Alter | Jul 22, 00:49 | |
| David Alter | Jul 22, 01:41 |






Cocoa mail archive

