no content bindings for CPTableView for CPTableView
raresp opened this issue · 6 comments
Using branch CPTableViewLion
When running the Tests/Manual/CPTableViewLionCibTest I get this error, yet the content loads somehow.
2012-04-18 22:28:10.567 Cappuccino [info]: no content binding established and data source <AppController 0x004f05> does not implement numberOfRowsInTableView:
I have made another app and got the same error and the table is empty.
Debugging I have noticed that the bindingsMap is actually empty. Xcode reveals reveals several bindings, the map should not be empty.
Did you pull the latest commits ?
Yes. Repo is up to date.
I take it you don't get the same exception?
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Maybe there is a regression again after the new merges.
I have just made a fresh checkout on branch CPTableViewLion and I get the exception on the test Tests/Manual/CPTableViewLionCibTest
The exception is caused by the fact that CPTableView tries to load the bound content before the cib was loaded and before it has been loaded from the Data.plist
Here is the log detailing it:
2012-04-20 10:55:47.067 Cappuccino [info]: contentBindingInfo for table: null
Objective-J.js:4452012-04-20 10:55:47.072 Cappuccino [info]: no content binding established and data source <AppController 0x005efc> does not implement numberOfRowsInTableView:
Objective-J.js:4452012-04-20 10:55:47.100 Cappuccino [info]: contentBindingInfo for table: {
CPObservedKeyPathKey = "arrangedObjects"
CPObservedObjectKey = "<$KVO_CPArrayController 0x0053f5>"
CPOptionsKey = "{
}"
}
Objective-J.js:4472012-04-20 10:55:47.186 [info]: Cib loaded and the view awaken
Objective-J.js:4452012-04-20 10:55:47.570 Cappuccino [info]: contentBindingInfo for table: {
CPObservedKeyPathKey = "arrangedObjects"
CPObservedObjectKey = "<$KVO_CPArrayController 0x0053f5>"
CPOptionsKey = "{
}"
}
Objective-J.js:4472012-04-20 10:55:47.580 [info]: Data loaded in array.
Objective-J.js:4472012-04-20 10:55:47.645 [info]: Cib loaded and the view awaken
Objective-J.js:4472012-04-20 10:55:47.696 [info]: Cib loaded and the view awaken
I have used this branch happily for a few weeks, couldn't find anymore issues.
Can you push it back to origin? What can I do to help in that direction?