Re: Bindings & empty strings
Re: Bindings & empty strings
- Subject: Re: Bindings & empty strings
- From: Jens Miltner <email@hidden>
- Date: Tue, 17 May 2005 23:12:22 +0200
Am 17.05.2005 um 18:23 schrieb SA Dev:
Check the docs on NSDictionary. You cannot set nil values for any
keys.
I know, but I'm not talking about nil values, I'd expect an empty
string to be set when I empty the text field that is bound to that
dictionary value, i.e.
<key>foo</key>
<string/>
So, why on earth would the binding remove the value if I remove all
text from the text field?
On May 17, 2005, at 12:03 PM, Jens Miltner wrote:
Why is it that removing all text from an NSTextField which is
connected to a dictionary value via Bindings removes that dictionary
value instead of setting it just to an empty string?
This is somewhat annoying for me, since in a couple of places I have
to rely on the completeness of the data in the dictionary, which
means I have to manually check that all values are supplied.
Is there any way to specify that the bindings controllers should
_not_ remove the value, but store an empty string?
</jum>
_______________________________________________
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