• 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: SA Dev <email@hidden>
  • Date: Tue, 17 May 2005 12:23:32 -0400


Check the docs on NSDictionary. You cannot set nil values for any keys.




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?

Thanks,
</jum> _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net


This email sent to email@hidden

_______________________________________________ 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
  • Follow-Ups:
    • Re: Bindings & empty strings
      • From: Jens Miltner <email@hidden>
References: 
 >Bindings & empty strings (From: Jens Miltner <email@hidden>)

  • Prev by Date: Re: Menu bar WITHOUT dock icon?
  • Next by Date: Re: Menu bar WITHOUT dock icon?
  • Previous by thread: Re: Bindings & empty strings
  • Next by thread: Re: Bindings & empty strings
  • Index(es):
    • Date
    • Thread