On May 14, 2010, at 10:25 AM, Quincey Morris wrote:
If I understand you correctly, you're on the right track -- you want
to bind the array controller's selection indexes to your data
model's selection property.
As you noted this is easy to implement but unfortunately it does not
work. The
On May 14, 2010, at 10:44, Richard Somers wrote:
> I see what you are saying. The path I was following was a little different.
> Each model object has a 'selected' attribute or property. When the array
> controller selection is set, the model objects 'selected' property is also
> set. What I wa
On May 14, 2010, at 10:25 AM, Quincey Morris wrote:
If I understand you correctly, you're on the right track -- you want
to bind the array controller's selection indexes to your data
model's selection property. However, Core Data properties don't
support index sets as a standard data type,
On May 14, 2010, at 06:43, Richard Somers wrote:
> Currently I track the selection using NSArrayController's selection methods.
> I have a custom view that figures out what the selection should or should not
> be and programatically sets the array controller's selection. It works very
> well an
On May 13, 2010, at 10:59 PM, Quincey Morris wrote:
This is a little bit harder than it seems. You certainly want to
have the document undo manager keep track of the selection changes,
in order to stay in sync with the really undoable changes. So:
1. You need to add a transient property for
On May 13, 2010, at 21:20, Richard Somers wrote:
> Consider a Core Data document based application that uses a
> NSArrayController. When the selected objects are removed or deleted and then
> the user does an undo the selected objects are restored but the selection is
> not. I have a custom vie
Consider a Core Data document based application that uses a
NSArrayController. When the selected objects are removed or deleted
and then the user does an undo the selected objects are restored but
the selection is not. I have a custom view object.
I would like the state of the selection to