• 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
Bindings, Dicts and Cancel Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings, Dicts and Cancel Window


  • Subject: Bindings, Dicts and Cancel Window
  • From: Trygve Inda <email@hidden>
  • Date: Sun, 23 Jul 2006 12:06:22 +0000
  • Thread-topic: Bindings, Dicts and Cancel Window

I have a prefs-like window with all the control values attached to
key/values in a dict through bindings. Works great.

I need to be able to handle the situation where the user clicks cancel, and
since they are bindings there are updated on the fly as the user is clicking
so my thought is...

Before showing the window, use CFPropertyListCreateDeepCopy to copy the
dict.

Now, how do I insert it back in a KVO way - or does it need to be KVO at
all? Can I just replace the entire (newly modified) dictionary with the old
one, or do I need to step through each key and insert the old values into
the newly modified dict.

I hope this is clear.

Trygve


 _______________________________________________
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, Dicts and Cancel Window
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Design patterns
  • Next by Date: Re: Problems with NSSpeechSynthesizer and Foundation tool?
  • Previous by thread: Re: Design patterns
  • Next by thread: Re: Bindings, Dicts and Cancel Window
  • Index(es):
    • Date
    • Thread