• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bindings & empty strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Bindings & empty strings (From: Jens Miltner <email@hidden>)
 >Re: Bindings & empty strings (From: SA Dev <email@hidden>)

  • Prev by Date: Re: A CoreData Limitation?
  • Next by Date: Re: A CoreData Limitation?
  • Previous by thread: Re: Bindings & empty strings
  • Next by thread: Using an alternate sort selector for a bound table column?
  • Index(es):
    • Date
    • Thread