NSArrayController / NSTableView questions
NSArrayController / NSTableView questions
- Subject: NSArrayController / NSTableView questions
- From: Paul Forgey <email@hidden>
- Date: Mon, 5 Sep 2005 14:11:45 -0700
I've got an application where I want an _ordered_ list of entities on
the many side of a one to many relationship. The result of the
master entity selection's entity is a set, which indicates to me the
order is probably arbitrary (is that true?). One solution I am
considering is to add a numeric sorting attribute to this table, and
to subclass the array controller to handle the
insertObject:atArrangedObjectIndex: method. Is this really
necessary? And how do I (or can I) bind an NSTableView with a
sortDescription to express this? Or would that be moot if I subclass
the array controller?
Using the result of dropping an entity into a window as an example, I
have some questions about what is going on. Does this "take over"
the dataSource of the NSTableView? What is the dataSource when this
is happening? The controller? I'm trying to figure out how to
support dragging in the NSTableView to reorder the items. Also, I'm
noticing the NSTableColumns are all individually bound to the various
arrangedObject.key.path expressions. How does this come together for
the entire NSTableView itself, which I am noticing is not bound to
anything?
_______________________________________________
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