NSArrayController, TableView and not showing data
NSArrayController, TableView and not showing data
- Subject: NSArrayController, TableView and not showing data
- From: Trygve Inda <email@hidden>
- Date: Wed, 05 Jul 2006 22:39:46 +0000
- Thread-topic: NSArrayController, TableView and not showing data
In my AppController I have:
NSMutableArray* pluginInstances;
This is alloc'ed and loaded with data on launch and contains 1 item.
I have an NSArrayController in my nib set up as:
ObjectClassName: NSObject (several kinds of classes might be in the array)
Binding (contentArray) points to pluginInstances in my AppController
I also have a TableView in a sheet window. The identifier for the column is
pluginName (which is an instance variable in my pluginObject
I have bound the TableView column to arrangedObjects with a model key path
pluginName.
So... When I first bring up the tableView, there is nothing in it (although
the array has one item). If I click on the column header, the item appears.
How can I get it to automatically appear the first time?
I have tried setNeedsDisplay on and reloadData on the TableView with no
luck.
Thanks,
Trygve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden