Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Design Principles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Design Principles



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.


References: 
 >Design Principles (From: Albion Baucom <email@hidden>)
 >Re: Design Principles (From: Pandaa <email@hidden>)
 >Re: Design Principles (From: Albion Baucom <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.