Re: How do people typically implement dialog controllers?
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