Re: Are Bindings Redundant?
Re: Are Bindings Redundant?
- Subject: Re: Are Bindings Redundant?
- From: James DiPalma <email@hidden>
- Date: Fri, 4 Jun 2004 01:30:15 -0700
Can you do anything new with bindings that you couldn't before?
Sure, they save code, but do they make things possible that were
impossible previously
In my simple uses for bindings, I have found them to replace code (that
is easy to write) with connections in IB that can be initially
confusing to understand and at times very difficult to debug. I know
that new technologies present new errors and new debugging patterns
that can be learned, but I honestly do not think IB is a good tool for
maintaining a lot of connections.
Its an interesting set of technologies that has benefited greatly from
other new technology that also came with 10.2. Before bindings, sorting
a table view was a problem without a documented solution from Apple
(I'm probably wrong about this, but I can't remember a good table view
sorting example). Along come bindings and sorting happens
automatically.
What also happened? Foundation added NSSortDescriptor, and sorting
methods to NSArray that use sort descriptors; AppKit added sort
descriptor support to NSTableView, NSTableColumn, and
NSTableDataSource. What used to be a challenge is now trivial, but with
bindings, we don't even need to do that.
One of my concerns with bindings is that redundant functionality like
these sort descriptor features of table view will no longer be valued
as important public api.
-jim
_______________________________________________
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.