Greetings Programs!
I'm using a class definition and it's added to the tableviewcontroller in the storyboard along with an SCArrayOfObjectsSection; basically the same as the TasksApp sample app.
In awakeFromNib, I am retrieving the forms from the web service which sends a notification when they have been retrieved:
The data is returned no problems but when I refresh the tableViewModel, the objectForASection isn't firing. In fact it doesn't fire at all, not even on load.
func retrievedForms(notification: NSNotification) { SVProgressHUD.dismiss() if notification.object == nil { return } let result = notification.object as! NSMutableDictionary forms = (result.objectForKey("GetActiveFormsResult") as! NSArray).mutableCopy() as! NSMutableArray tableViewModel.reloadBoundValues() tableView.reloadData() } override func objectForSection(objectSection: SCObjectSection!, atIndex index: UInt) -> NSObject! { return forms; }
Suggestions as to what I am doing wrong? I compared my tableviewcontroller with the one in the TasksApp and didn't find anything out of the ordinary.
Thanks!
Wg