Allow creating custom NSFormatters

This pull request has two parts (monomac and maccore). Notes are in the maccore request.

In combination with data binding this allows to get the standard "Please provide a valid value." dialogs.