Re: preference problem
Re: preference problem
- Subject: Re: preference problem
- From: Shawn Erickson <email@hidden>
- Date: Thu, 16 Sep 2004 07:22:50 -0700
On Sep 16, 2004, at 12:38 AM, Jacob Lukas wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Until recently, I've had no problem binding preferences to controls.
Now, any preferences I bind in MainMenu.nib will not read the value of
the preference, only save to it. Weird things: the same behavior
occurs in previous versions of my app, and occurs in *clean*
installations of the OS. I tried making clean builds, and remaking
nibs from scratch, to no avail. If anyone has any advice, it would be
greatly appreciated.
When do you register your defaults? It must be done during initialize
or before the nib objects are loaded.
See
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaBindings/Concepts/NSUserDefaultsController.html#//apple_ref/doc/
uid/TP40001092>
It is sufficient to use registerDefaults against hte
standardUserDefaults instance it just has to be done before the bond
object get going.
-Shawn
_______________________________________________
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