I’m working on an NSPersistentDocument based app that has a per-document currency setting.
Preferably, I would like to use a single NSNumberFormatter currencyFormatter for all my NIB files, but there doesn’t seem to be any easy way to bind, say, NSTextField formatter to document.currencyFormatter or something similar.
I’m pretty sure it is possible to do this using code, adding bindings manually, but it is quite a bit of work since I have many fields using the currency formatter.
What is the best option to share the currency formatter across multiple NIB files?
Here I suggest two ways:
PS: I’m not sure if I completely understand what you’re asking, tell me if one of these would be a valid solution to you.