Re: KeyValue Observing rant
Re: KeyValue Observing rant
- Subject: Re: KeyValue Observing rant
- From: Robert Goldsmith <email@hidden>
- Date: Mon, 26 Apr 2004 16:31:06 +0100
>
Well it saves two lines of code in every set-accessor, thats seems to
>
be fine firsthand.
The whole concept of Bindings saves far more code than that :) If you
have, say, 20 or so items of info that need to be updated from an array
or dictionary as the user moves through said data storage it is a
massive saving in effort. Add to this the ability to automatically sync
changes in data across multiple views and you have just saved another
shed load of code :) I think it's great :)
>
But one of those "little" drawbacks is, that so basic things like
>
-description won't work anymore.
I have not noticed this - all my code still works as I would expect it
to. Where does this problem happen?
>
But I'm ranting because this hidden posing or on-the-fly changing of
>
the isa is not documented and it limits other code (like plugins)
>
doing it too.
My code is a plugin for Address Book and I have had no odd effects from
using Bindings in this context.
>
PROGRAMMING IS ABOUT CONTROL.
No, programming is a fine balance between control and rapid
development. If you want control and only control, why are you writing
in Objective C anyhow? With it's run-time loading and message system,
not to mention AppKits responder chain system, you have to hand over a
level of trust to the system no matter what you do in ObjC. Java is
even worse - with it's garbage collector.
>
How "clever" is it to loose this control? Just for saving two lines of
>
code?
Every time you call a method in ObjC the runtime does a whole load of
stuff behind your back. Is this any different from Bindings? And, as I
said, it is far more than two lines of code.
>
Having back the control is worth the change.
Bindings are not compulsory. Take control and CHOOSE not to use them.
Personally, although I think they have a few rough edges, I love them!
They make the whole gluing of data manipulation to user interface so
simple I am stunned no-one thought of it before :)
Robert
---
GnuPG public key:
http://www.Far-Blue.co.uk
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.