Welcome, Guest
Username Password: Remember me

Sorting on relationship property doesn't refresh
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Sorting on relationship property doesn't refresh

Sorting on relationship property doesn't refresh 1 year, 2 months ago #1

Hi!

I have a House->Adress relationship (House can only have 1 Adress). When i change the street in the Adress relationship the Houses tableview won't get resorted even though i set these properties in the House entity classdef. Am i missing something?

 
 
- (void)viewDidLoad {
 
// Create a class definition for HouseEntity
...
entityClassDef.titlePropertyName = @"adress.street";
entityClassDef.keyPropertyName = @"adress.street";
 
...
 
// Instantiate the tabel model
tableModel = [[SCArrayOfObjectsModel alloc] initWithTableView:self.tableView withViewController:self withEntityClassDefinition:houseClassDef];
 
tableModel.addButtonItem = self.navigationItem.rightBarButtonItem;
tableModel.autoSortSections = TRUE;
tableModel.hideSectionHeaderTitles = TRUE;
 
}
 
 


Anxiously waiting new release.
Thanks!
  • codebonbon
  • OFFLINE
  • Expert Boarder
  • Posts: 149
  • Karma: 8

Re: Sorting on relationship property doesn't refresh 1 year, 2 months ago #2

Hi Harold,

Does it get re-sorted if you quit the app and launch it again?
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: Sorting on relationship property doesn't refresh 1 year, 2 months ago #3

Hi Tarek!

Actually nothing gets persisted when i close my app :-0. Which i did'nt realise at first since i tend to repeat/automate my tests. Did i miss something in your core data/sample about persistence?

Thanks!
  • codebonbon
  • OFFLINE
  • Expert Boarder
  • Posts: 149
  • Karma: 8

Re: Sorting on relationship property doesn't refresh 1 year, 2 months ago #4

Hi Harold,

Are you testing using the simulator? If you are, you'll need to press the home button first before you actually close the simulator.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72

Re: Sorting on relationship property doesn't refresh 1 year, 2 months ago #5

Hi!

Yes, i'm testing via the simulator. I enter new items and make sure i'm not in edition anymore. Then i press the home button which puts my app in suspended mode which is normal. Then i close it via the minus in the "suspended app bar". Afterwards when i reopen the app all items i've added are not there anymore.

Thanks!
  • codebonbon
  • OFFLINE
  • Expert Boarder
  • Posts: 149
  • Karma: 8

Re: Sorting on relationship property doesn't refresh 1 year, 2 months ago #6

Are you sure you have the "applicationDidEnterBackground" and "applicationWillTerminate" methods properly implemented in your application's delegate? I can also have a look at your project if you wish (please send it to our support email)
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72
  • Page:
  • 1
  • 2
Time to create page: 0.91 seconds