• 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
Re: Design Principles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


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

  • Prev by Date: Problem with NSScrollView & NSImageView
  • Next by Date: Re: Cocoa newbie question
  • Previous by thread: Re: Design Principles
  • Next by thread: Re: Design Principles
  • Index(es):
    • Date
    • Thread