Re: View Based TableView - how to use bindings?
Re: View Based TableView - how to use bindings?
- Subject: Re: View Based TableView - how to use bindings?
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 02 May 2013 12:25:09 +0700
On 2 May 2013, at 03:16, Quincey Morris <email@hidden> wrote:
I got it working.
Formerly I had:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
self.dataArray = [ NSMutableArray array ]; // this is the content of my ArrayController
for(...) { fill self.dataArray with 39 Dictionaries };
}
I changed this to:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
NSMutableArray *tempArray = [ NSMutableArray array ];
for(...) { fill tempArray with 39 Dictionaries };
self.dataArray = tempArray;
}
And now it works.
In the bad old style the ArrayController knew it had 39 objects, but the TableView still thought there were 0.
Now everything is in sync.
>> Just bound the image to "objectValue.AbsoluteNonsense" and did not get any error messages. Is this normal?
>
> If it's not creating any cell views, there won't be any errors.
Now that cell view ARE created, there are still no errors. There just are no images in my table.
Anyway - thanks a LOT for your help!
Kind regards,
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden