Re: NSTableView question
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