• 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: [Newbie] Multiple NSTableViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Newbie] Multiple NSTableViews


  • Subject: Re: [Newbie] Multiple NSTableViews
  • From: Stéphane Sudre <email@hidden>
  • Date: Sat, 25 Sep 2004 19:29:25 +0200


On samedi, septembre 25, 2004, at 07:05 PM, J Tichenor wrote:

There must be something obvious that I am missing:

I have two tableViews that one controller is deal with. Loading data programatically, through dataSource protocol methods. In each of the the numberOfRowsInTableView: and objectValueForTableColumn: methods, I have a switch that checks the tag of the calling tableView. Depending on the tag, different results should be returned.

The problem is that the methods are returning the proper values for the first table, but nothing for the second. NSLogging tells me the numberOfRowsInTableView is called once upon AwakeFromNib, when neither of my dataSources have value to display in the tables yet.

Later, when a user browser to an item that has displayable tableData, the first table is populated, the methods both log activity, but then the second table is never checked or populated, and no log activity is posted for the second switch.

Is there something that I missing, in terms of multiple tables and telling the controller to continue working through population of the tables?

Can forward code if it will help:

[myFirstTableView reloadData];

[mySecondTableView reloadData];


_______________________________________________ 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
  • Follow-Ups:
    • Re: [Newbie] Multiple NSTableViews
      • From: J Tichenor <email@hidden>
References: 
 >[Newbie] Multiple NSTableViews (From: J Tichenor <email@hidden>)

  • Prev by Date: [Newbie] Multiple NSTableViews
  • Next by Date: Re: I can capture stderr but can't capture stdout... unless debugging?
  • Previous by thread: [Newbie] Multiple NSTableViews
  • Next by thread: Re: [Newbie] Multiple NSTableViews
  • Index(es):
    • Date
    • Thread