Re: Model index and Array Controller index
Re: Model index and Array Controller index
- Subject: Re: Model index and Array Controller index
- From: Ben Lachman <email@hidden>
- Date: Thu, 23 Jul 2009 23:46:46 -0400
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 the array controller's -arrangedObjects as a mutable
copy, move the objects in that array, then call a category method I
wrote called -reeumerateObjectsByKey: which does as the name
suggests. You then ask the array controller to -rearrangeObjects.
So when do you actually do this, in the drop methods or somewhere more
central?
Thanks,
->Ben
--
Ben Lachman
Acacia Tree Software
http://acaciatreesoftware.com
email: email@hidden
twitter: @benlachman
mobile: 740.590.0009
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden