• 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: preference problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: preference problem
      • From: Jacob Lukas <email@hidden>
References: 
 >preference problem (From: Jacob Lukas <email@hidden>)

  • Prev by Date: Re: build numbers
  • Next by Date: Zerolink as a default option
  • Previous by thread: preference problem
  • Next by thread: Re: preference problem
  • Index(es):
    • Date
    • Thread