Usually I'm able to find answers to my Cocoa questions either in the excellent Xcode documentation or by googling, but this problem has got me stumped.
How do I use the Display Patterns in Cocoa Bindings?
I've tried variations on these search terms: "cocoa bindings display pattern format string decimals".
I know that "%{value1}@ Mailboxes" will typically display something like "3 Mailboxes".
I would ideally like to find some good documentation on how to use the display patterns for advanced formatting of bound values.
If that doesn't exist, my current problem is how to use bindings to display a float value in an NSTextField as a decimal number with exactly two decimals as %.2f would do for printf.
Can someone help?
How do I use the Display Patterns in Cocoa Bindings?
I've tried variations on these search terms: "cocoa bindings display pattern format string decimals".
I know that "%{value1}@ Mailboxes" will typically display something like "3 Mailboxes".
I would ideally like to find some good documentation on how to use the display patterns for advanced formatting of bound values.
If that doesn't exist, my current problem is how to use bindings to display a float value in an NSTextField as a decimal number with exactly two decimals as %.2f would do for printf.
Can someone help?