Re: Design Principles
Re: Design Principles
- Subject: Re: Design Principles
- From: Chris Parker <email@hidden>
- Date: Fri, 23 Jul 2004 15:17:10 -0700
On Jul 23, 2004, at 2:49 PM, Albion Baucom wrote:
On Fri, 23 Jul 2004, Pandaa wrote:
If it only needs to talk to the customview to broadcast preference
changes, use notifications. It is probably more elegant to use
notifications. Let your preference GUI send notifications when a
preference is changed, and have any object in your application that is
affected by the preference register for said notifications.
Cool, yes, this looks better. I was looking at a cascade of method
calls
to get through the heirarchy. That seemed clusmy, this sounds more
elegant.
Better still? Use NSUserDefaultsController and bind them. :) That'll
take care of all the magic for you...
.chris
--
Chris Parker
Cocoa Frameworks
Apple, Inc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.