Problems loading data into NSTableView using a NSArrayController
Problems loading data into NSTableView using a NSArrayController
- Subject: Problems loading data into NSTableView using a NSArrayController
- From: deepak gopal <email@hidden>
- Date: Wed, 26 Sep 2007 07:32:39 +0530 (IST)
Hi
I am using NSArrayController to load two columns of a table View and the method I am using is:
NSArrayController *tableViewController_;
- (void)loadArrayController {
// kPlistPath is the path to the plist file I am using. It has 100 Key-Value Pairs
NSDictionary *plistDictionary = [NSDictionary dictionaryWithContentsOfFile:kPlistPath];
NSMutableDictionary *newDictionary = [NSMutableDictionary dictionary];
[newDictionary setValue:[plistDictionary allKeys] forKey:@"Methods"];
[newDictionary setValue:[plistDictionary allValues] forKey:@"Address"];
[tableViewController_ addObject:newDictionary];
}
I have till now managed to get a braket in each column.
What am I doing wrong? or how else should I do
this?
Thank you
DG
Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
_______________________________________________
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