• 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: Table data not initializing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table data not initializing


  • Subject: Re: Table data not initializing
  • From: Matt Jaffa <email@hidden>
  • Date: Mon, 26 Apr 2004 16:00:52 -0600

It might be helpful to check your console log and it will give you errors as to where the TableView thinks it is supposed to be getting its data from.



On Apr 26, 2004, at 3:13 PM, Ken Tozier wrote:

I'm sure this is just an IB wiring problem on my part, but I can't seem
to get a table view to ever call the following methods defined in my
nib file controller/datasource class.

- (int) numberOfRowsInTableView:(NSTableView *) tableView
- (id) tableView:(NSTableView *) inTableView
objectValueForTableColumn:(NSTableColumn *) inTableColumn
row:(int) inRow


The nib file loads ok and the window containing the table appears on
screen, but at no point are either of the above methods called.

Here's how I have it wired up in IB

The "dataSource" outlet in the NSTableView of the window is wired to my
Controller/Datasource instance.
The "fileView" field in my Controller/Datasource instance is wired to
the NSTableView of the window.

Do I have to connect the Controller/Datasource instance to something
else to get it to work?

Thanks for any help

Ken
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Table data not initializing (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Upper limit to how large an NSString (from url) can be?
  • Next by Date: Re: Table data not initializing [Solved]
  • Previous by thread: RE: Table data not initializing
  • Next by thread: Programatically becoming the default application for a certain file type
  • Index(es):
    • Date
    • Thread