Re: TableView not loading completely
Re: TableView not loading completely
- Subject: Re: TableView not loading completely
- From: deepak gopal <email@hidden>
- Date: Wed, 17 Oct 2007 23:08:45 +0530 (IST)
Yes I do have [tableView reloadData]; Sorry I didn't add that.
DG
----- Original Message ----
From: Corbin Dunn <email@hidden>
To: deepak gopal <email@hidden>
Cc: cocoa dev <email@hidden>
Sent: Wednesday, 17 October, 2007 9:17:57 AM
Subject: Re: TableView not loading completely
On Oct 16, 2007, at 7:24 PM, deepak gopal wrote:
> Hi
>
> I caught my mistake.
>
> Before I was doing this:
> - (IBAction) loadTable {
> NSDictionary *plistDictionary =
> [NSDictionary dictionaryWithContentsOfFile:menuItemSelected];
> plistArray_ = [plistDictionary valueForKey:@"Functions"];
> }
>
> But my Dictionary died when I exited the method so all I had to do
> is this
> - (IBAction) loadTable {
> NSDictionary *plistDictionary =
> [NSDictionary dictionaryWithContentsOfFile:menuItemSelected];
> [plistArray_ removeAllObjects];
> [plistArray_ arrayByAddingObjectsFromArray:[plistDictionary
> valueForKey:@"Functions"]];
> }
>
You are modifying the datasource without calling "reloadData" on the
table. you should have a [tableView reloadData] at the end of that
loadTable method.
corbin
>
> I am using datasource. The value I return from
numberOfRowsInTableView
> is in thousands.
> So I should have atleast a 1000 lines of data in the TableView.
>
> - (int)numberOfRowsInTableView:(NSTableView *)tableView {
> return [plistArray_ count];
> }
>
_______________________________________________
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
Get the freedom to save as many mails as you wish. To know how, go to 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