• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Model index and Array Controller index
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Model index and Array Controller index


  • Subject: Model index and Array Controller index
  • From: Ben Lachman <email@hidden>
  • Date: Thu, 23 Jul 2009 17:05:26 -0400

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 the tableview. The array controller also implements drag n' drop reordering as per mmalc's Bookmarks example. 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?

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


  • Follow-Ups:
    • Re: Model index and Array Controller index
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: NSSliderCell question
  • Next by Date: Re: Comparing NSImages
  • Previous by thread: Re: Comparing NSImages
  • Next by thread: Re: Model index and Array Controller index
  • Index(es):
    • Date
    • Thread