Re: [SOLVED] Re: Linking a specific controller instance to user defaults

2010-05-06 Thread Reinhard Segeler
Maybe you could set an NSUserDefaults value, that is being read in +initialize/-init of the "view" class to create your settingsname there... -- Reinhard Am 06.05.2010 um 03:41 schrieb Graham Cox: Hi Quincey. That occurred to me too but seems a bit hackish. I solved it by asking the delega

[SOLVED] Re: Linking a specific controller instance to user defaults

2010-05-05 Thread Graham Cox
Hi Quincey. That occurred to me too but seems a bit hackish. I solved it by asking the delegate for the settings name root. The delegate is a distinct class in this case, so it can return a unique string, and the delegate can be set in IB and so is available at -awakeFromNib time. Works well in

Re: Linking a specific controller instance to user defaults

2010-05-05 Thread Quincey Morris
On May 5, 2010, at 05:42, Graham Cox wrote: > The problem should be obvious - how to ensure that each instance of the > controller can use a specific unique key in the user defaults. Creating a > unique key is easy, but at load time how to calculate the exact same key for > the specific instanc