• 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: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
  • Next by Date: Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
  • Previous by thread: Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
  • Next by thread: Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
  • Index(es):
    • Date
    • Thread