Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
- Subject: Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
- From: m <email@hidden>
- Date: Mon, 3 Jan 2005 13:44:07 -0800
On Jan 3, 2005, at 1:24 PM, Izidor Jerebic wrote:
And, besides that, with bindings you need to spend extra effort,
because there are more demands on your code - one is the basic model
behaviour, and the second is bindings (KVO/KVC).
Am I missing something here? Do you write classes that don't have or
don't use accessors? Have you been avoiding the use of accessors inside
your class as well?
In the example above you have actually created a second layer of
abstraction above KVC/KVO - all the behaviour (add:) is implemented
via KVC methods. Instead of a single layer (object's methods) now you
need two - object's methods (its interface to the external world) and
below it KVC/KVO primitives. If this is not more work, I do not know
what is.
The extra effort you worry about is more than offset by not having to
write and maintain a lot of the controller stuff, no?
Plus, the initial effort of converting your legacy model classes to
support KVC/KVO for this project can be amortized over future bindings
based projects, reducing overall effort even further.
_murat
_______________________________________________
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
References: | |
| >Cocoa Bindings - nondebuggable, non-obvious, procedural ??? (From: Izidor Jerebic <email@hidden>) |
| >Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ??? (From: Tim Lucas <email@hidden>) |
| >Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ??? (From: Izidor Jerebic <email@hidden>) |
| >Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ??? (From: mmalcolm crawford <email@hidden>) |
| >Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ??? (From: Izidor Jerebic <email@hidden>) |