• 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, User Defaults and the UI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings, User Defaults and the UI


  • Subject: Re: Bindings, User Defaults and the UI
  • From: "Jeffrey E. Forcier" <email@hidden>
  • Date: Wed, 28 Sep 2005 21:40:09 -0400

I'm using PyObjC, so it's in Python; but yes, controllerValues is just another name (essentially a pointer) for NSUserDefaultsController.sharedUserDefaultsController().values(). I can successfully set/get the values--e.g. if I were to do the following:

controllerValues.setValue_forKeyPath_(someValue,someKeyString)
print controllerValues.valueForKeyPath_(someKeyString)

with arbitrary values replacing 'someValue' and 'someKeyString', I do in fact get back the value I previously set.

In addition, the associated .plist file is updated successfully by similar setValue:forKeyPath: calls, and upon relaunching the test app the checkboxes reflect the changes previously made--they just aren't reflecting the changes during the session they're set in. Which is the expected behavior =)

Thanks,
Jeff

On Sep 28, 2005, at 9:33 PM, Julian wrote:

What type of object does "controllerValues" return, an NSUserDefaultsController.sharedUserDefaultsController().values() object pointer? Have you tried my method directly, but using java instead?

~Julian

On Sep 28, 2005, at 9:29 PM, Jeffrey E. Forcier wrote:


controllerValues


~Julian email@hidden






--
Jeffrey E. Forcier
Junior Developer, Research and Development
Stroz Friedberg, LLC
15 Maiden Lane, 12th Floor
New York, NY 10038
[main]212-981-6540 [direct]212-981-6546
http://www.strozllc.com

This message is for the named person's use only.  It may contain
confidential, proprietary or legally privileged information. No right to
confidential or privileged treatment of this message is waived or lost
by any error in transmission.  If you have received this message in
error, please immediately notify the sender by e-mail or by telephone at
212.981.6540, delete the message and all copies from your system and
destroy any hard copies.  You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this message if you are
not the intended recipient.

_______________________________________________
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, User Defaults and the UI (From: "Jeffrey E. Forcier" <email@hidden>)
 >Re: Bindings, User Defaults and the UI (From: Julian <email@hidden>)
 >Re: Bindings, User Defaults and the UI (From: "Jeffrey E. Forcier" <email@hidden>)

  • Prev by Date: Re: Bindings, User Defaults and the UI
  • Next by Date: Re: Bindings, User Defaults and the UI
  • Previous by thread: Re: Bindings, User Defaults and the UI
  • Next by thread: Re: Bindings, User Defaults and the UI
  • Index(es):
    • Date
    • Thread