refresh NSArrayController

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

  1. gonche1124 macrumors newbie

    Joined:
    Aug 6, 2009
    #1
    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?

    Thanks
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
  3. gonche1124 thread starter macrumors newbie

    Joined:
    Aug 6, 2009
    #3
    reload

    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