• 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
An approach sought
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

An approach sought


  • Subject: An approach sought
  • From: Michael de Haan <email@hidden>
  • Date: Tue, 13 Mar 2012 14:28:55 -0700

I am sure this must be covered somewhere, but my searches come to nought.

Using bindings, I wish to persist the state of an app ( for example, a slider's value).

Current test app is thus.

A slider, whose value is bound to a "model" float value via an appropriate NSController ( in this case, an objectController).  A textField, similarly bound, reflects the value of the slider as the slider updates the model. All this works as expected.
I am able to implement NSUserDefaults by binding the appropriate controls ( in this case, for example the slider) to a shared user defaults controller in IB, but this, as expected, either sets  some factory default or restores the last user state. What I wish to have happen, is a situation where model and view AND last user value saved and restored using the "bindings" model.
Is this possible?
I would be most grateful for a pointer in the right direction.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: An approach sought
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Cocoa-dev Digest, Vol 9, Issue 28
  • Next by Date: Making a NSPanel to look active
  • Previous by thread: Re: Cocoa-dev Digest, Vol 9, Issue 28
  • Next by thread: Re: An approach sought
  • Index(es):
    • Date
    • Thread