• 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: NSTableView question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView question


  • Subject: Re: NSTableView question
  • From: Keary Suska <email@hidden>
  • Date: Sun, 03 Jun 2007 13:45:42 -0600
  • Thread-topic: NSTableView question

on 6/3/07 11:32 AM, email@hidden purportedly said:

> I'm having trouble loading data into an NSTableView from its data
> source. I have an object of one class, FindController, which executes
> database queries and assembles found data into a mutable array of
> NSDictionary objects. Then it passes that array to an object of another
> class, TableController, to populate the table. FindController owns
> TableController.
>
> The trouble is that TableController can't seem to "see" the table it's
> supposed to populate. I simply get nothing. Even the isKindofClass
> method returns null. As I've designed this, the NSTableView object
> itself is not passed as an id from the FindController to the
> TableController, rather its name is passed as a string. But
> TableController has been wired up as the table's data source in IB and
> has an outlet to the table.

Do you know that the TableController instantiated in the nib (which is how I
assume you are setting the outlet to the tableview) is never the same object
as the one alloc/inited by FindController (unless TableController is a
singleton class)?

Start there. Also check to make sure your delegate methods are being
called--sprinkle NSLogs and include "self" in the output so you can verify
who is being called.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

References: 
 >NSTableView question (From: Kip Wedel <email@hidden>)

  • Prev by Date: Re: RTF to unicode conversion
  • Next by Date: How does NSArrayController bind to data model from IB?
  • Previous by thread: NSTableView question
  • Next by thread: RS: RTF to unicode conversion
  • Index(es):
    • Date
    • Thread