refresh NSArrayController

Discussion in 'Mac Programming' started by gonche1124, Aug 15, 2010.

  1. gonche1124 macrumors newbie

    Aug 6, 2009
    I have two NSarrayControllers that populate two NStableViews. The controllers take the data from entities of an NSManagedObjectContext.

    When I make changes in the managedObjectContext through code, they don't reflect in the TableView.

    How can I refresh the tabeView or the arraycontrollers to load the data again?

  2. chown33 macrumors 604

    Aug 9, 2009
    Sailing beyond the sunset
  3. gonche1124 thread starter macrumors newbie

    Aug 6, 2009

    That works for the tableView, but since the source of the tableview is from the NSArrayController, it loads the same data because I think that the NSArrayController is not refreshing the data from the NSManagedObjectContext or is not aware of changes in the NSManagedObjectContext

Share This Page