Re: Newbie Q'n Related to Application Preferences
Re: Newbie Q'n Related to Application Preferences
- Subject: Re: Newbie Q'n Related to Application Preferences
- From: mmalcolm crawford <email@hidden>
- Date: Fri, 28 Oct 2005 08:44:16 -0700
On Oct 28, 2005, at 7:15 AM, Apparao wrote:
This is regarding application preferences (like having some
currency related..). My app was multi document app. In a single
document, i have several controllers. In each controller i have set
of textfields and tableViews. If i change(for suppose currency
symbol). I have to update all the textfields and tableviews in all
controllers in all opened documents. How can i bind all these things.
It's not clear what your problem is (in what sense do you mean, "How
can I bind all these things?")? You can use Cocoa bindings for your
Preferences pane (see for example, <http://developer.apple.com/cocoa/
cocoabindings.html>, <http://developer.apple.com/documentation/Cocoa/
Conceptual/CocoaBindings/Concepts/NSUserDefaultsController.html> and
Controlled Preferences at <http://homepage.mac.com/mmalc/
CocoaExamples/controllers.html>). To propagate changes made to the
defaults, you either register for NSUserDefaultsDidChangeNotification
notifications, or observe the relevant values in the shared
NSUserDefaultsController instance.
mmalc
_______________________________________________
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