Re: Model index and Array Controller index

2009-07-24 Thread I. Savant
On Jul 23, 2009, at 11:46 PM, Ben Lachman wrote: So when do you actually do this, in the drop methods or somewhere more central? On accept drop. It's typically the only place I manually order items, so that kind of *is* the central location. :-) Everything else is handled by sort descri

Re: Model index and Array Controller index

2009-07-23 Thread Ben Lachman
On Jul 23, 2009, at 6:51 PM, I. Savant wrote: On Jul 23, 2009, at 5:05 PM, Ben Lachman wrote: The problem I'm having is that I can't find a decent way of propagating index changes in the array controller back down to the model. Does anyone have a good method of doing this? I usually get

Re: Model index and Array Controller index

2009-07-23 Thread I. Savant
On Jul 23, 2009, at 5:05 PM, Ben Lachman wrote: The problem I'm having is that I can't find a decent way of propagating index changes in the array controller back down to the model. Does anyone have a good method of doing this? I usually get the array controller's -arrangedObjects as a m

Model index and Array Controller index

2009-07-23 Thread Ben Lachman
I have a simple situation that I can't decide on a good solution to. I have a model object that has an index property. These objects are displayed in a simple table view which should be ordered by index. This is easily done by adding a sort descriptor to the array controller that feeds t