Re: Listening to bindings
Re: Listening to bindings
- Subject: Re: Listening to bindings
- From: Jiva DeVoe <email@hidden>
- Date: Fri, 18 Feb 2005 11:09:30 -0700
Guy,
Just out of curiosity, why not use NSDictionaries (or model classes
with NSDictionaries to hold their properties) for models?
The reason I ask is I saw an example that did exactly this
(http://www.cocoadevcentral.com/articles/000080.php) and they seemed to
suggest it was a good way to encapsulate a lot of fields within an
object. (Sort of like a pimpl pattern of sorts, but not exactly). On
thinking about it, my gut tells me it's a scary way to do it...
(misspelled field names comes to mind as a problem), but in practice it
*does* seem very nice and very simple... particularly when working with
bindings which, in some cases, can allow you to add properties to your
objects without changing any code at all this way.
So I am curious, from an analysis standpoint, what are your reasons for
saying it's a "Bad thing"? (Not saying it isn't, but am trying to
figure it out myself).
On Feb 18, 2005, at 9:00 AM, Guy English wrote:
third party sticking it's nose in there? The only thing I can think of
is that you're using NSDictionaries instead of actual model classes -
if you are: don't. :)
--
Jiva DeVoe
http://www.devoesquared.com
PowerCard - Intuitive Project Management Software for Mac OSX
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden