• 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
Altering the behavior of NSUserDefaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Altering the behavior of NSUserDefaults


  • Subject: Altering the behavior of NSUserDefaults
  • From: Ron Aldrich <email@hidden>
  • Date: Fri, 6 Oct 2006 16:41:15 -0700

Folks,

I've run into a bit of a problem, which I'm unsure how to address.

I'm implementing a preferences panel in my application, with the view objects bound to an NSUserDefaultsController.

Many of the bindings need to be handled programatically - for instance, the "enabled" bindings depend on the value of some of the other settings.

The problem is, I can't figure out how, or where, I'm supposed to instantiate my subclass of NSUserDefaults (or of NSUserDefaultsController, for that matter).

I tried setting the NSUserDefaultsController's custom class attribute in Interface Builder, but it seems to be ignored, when creating controllers (Is this a bug in IB? or am I not supposed to be overriding the behavior of controllers?)

I also tried setting a delegate for NSUserDefaults, but that doesn't appear to be supported.

Any suggestions?

Ron Aldrich
Software Architects, Inc.

_______________________________________________
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


  • Prev by Date: Re: Core Data getting many data from relationship.
  • Next by Date: Mini controls
  • Previous by thread: cocoa MVC design question
  • Next by thread: Re: Altering the behavior of NSUserDefaults
  • Index(es):
    • Date
    • Thread