• 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: How do people typically implement dialog controllers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do people typically implement dialog controllers?


  • Subject: Re: How do people typically implement dialog controllers?
  • From: Seth Willits <email@hidden>
  • Date: Wed, 10 Sep 2008 21:39:44 -0700

On Sep 10, 2008, at 9:33 PM, Graham Cox wrote:

So my question becomes: a) is using this intermediate dictionary a sensible idea?
b) do others typically do this?
c) or is there a better way?

I use individual properties wherever possible. In some cases it's appropriate to have a single dictionary to contain the settings, because that dictionary gets passed around to other model objects as well. But if you're model objects uses distinct properties, why go through the trouble of having to pack them into a dictionary, pass it to the controller, then unpack the from the dictionary from the controller later on? It's easier to just to set and grab them individually.



-- Seth Willits




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How do people typically implement dialog controllers?
      • From: Graham Cox <email@hidden>
References: 
 >How do people typically implement dialog controllers? (From: Graham Cox <email@hidden>)
 >Re: How do people typically implement dialog controllers? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: How do people typically implement dialog controllers?
  • Next by Date: Re: How do people typically implement dialog controllers?
  • Previous by thread: Re: How do people typically implement dialog controllers?
  • Next by thread: Re: How do people typically implement dialog controllers?
  • Index(es):
    • Date
    • Thread