Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
- Subject: Re: Cocoa Bindings - nondebuggable, non-obvious, procedural ???
- From: Bob Ippolito <email@hidden>
- Date: Mon, 3 Jan 2005 16:09:20 -0500
On Jan 3, 2005, at 3:34 PM, James Dessart wrote:
On Mon, 3 Jan 2005 10:29:51 -0800, mmalcolm crawford
<email@hidden> wrote:
I can get stuff to work, but I don't understand why the stuff I got
to
work does what it does. It's very click-and-pray. I've would love to
see an example of NSArrayController with just one basic type --
NSStrings.
As has been stated on several occasions on this list, because bindings
rely largely on key value coding, strings do not work well as a model.
Typically you need at least a dictionary.
But if you want to do a list of strings, how would you go about doing
that? That's the question he's asking, I think. I'm not sure he wants
the example to do anything more than just list an array of simple
strings.
Well you could try to observe the "self" key of the array, which will
probably crash on 10.3 (from what I remember).
You might also be able to create a value converter to do it.
Worst case, you could always proxy the array.
-bob
_______________________________________________
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