• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TableView not loading completely
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TableView not loading completely


  • Subject: Re: TableView not loading completely
  • From: deepak gopal <email@hidden>
  • Date: Wed, 17 Oct 2007 07:54:40 +0530 (IST)

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"]];
}

and it started working.
Please let me know if I am doing anything wrong here.

Thank you
DG

----- Original Message ----
From: deepak gopal <email@hidden>
To: cocoa dev <email@hidden>
Sent: Tuesday, 16 October, 2007 2:11:23 PM
Subject: Fw: TableView not loading completely

Hi

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];
}

Thank you
Deepak

----- Original Message ----
From: Chris Hanson <email@hidden>
To: email@hidden; deepak gopal <email@hidden>
Cc: cocoa dev <email@hidden>
Sent: Monday, 15 October, 2007 7:56:46 PM
Subject: Re: TableView not loading completely

On Oct 15, 2007, at 7:04 PM,
 deepak gopal wrote:

> I have a table view which would show 13 rows at a given time. The
> vertical and horizontal scroll are enabled. All the attributes are
> standard.
> When I load the data, I can see only the first 13 rows getting
> populated and the application doesn't respond when I try scrolling
> down.

Are you using a data source or bindings to provide the table view with

objects to display?

If you're using a data source, what are you returning from its -
numberOfRowsInTableView: method?

  -- Chris










       Download prohibited? No problem. CHAT from any browser, without
 download.





      Travelling to a new city? Search for ATMs in that city. Go to
 http://in.maps.yahoo.com
_______________________________________________

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






      Save all your chat conversations. Find them online at http://in.messenger.yahoo.com/webmessengerpromo.php
_______________________________________________

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

  • Follow-Ups:
    • Re: TableView not loading completely
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Print out does not work on Panther
  • Next by Date: Re: Validation error in a relationship? (in coredata)
  • Previous by thread: Re: TableView not loading completely
  • Next by thread: Re: TableView not loading completely
  • Index(es):
    • Date
    • Thread