Re: NSTableView reloadData problem (needing 2 TableViews)
Re: NSTableView reloadData problem (needing 2 TableViews)
- Subject: Re: NSTableView reloadData problem (needing 2 TableViews)
- From: "Raymund Beyer" <email@hidden>
- Date: Tue, 26 Nov 2002 16:51:47 +0100
Roarke Lynch wrote:
>
Your controller object/datasource has IBOutlets to the tableViews yes?
>
You can use this method by just comparing the tableView to the IBOutlet
>
instances your object has. i.e
>
>
- (id)tableView:(NSTableView *)tableView
>
objectValueForTableColumn:(NSTableColumn *) row:(int)row
>
{
>
if(tableView == myFirstTable)
>
return dataForFirstTable;
>
else if(tableView == mySecondTable)
>
return dataForSecondTable;
>
>
return nil;
>
}
>
>
You are comparing the pointers of tableView objects, but they are the
>
same value as they should be pointing to the same object.
Thanks Roarke and Sarat!
I got it to work the way you both suggested within 15 minutes :-)
Thanks a lot
Ray
---------------------------------
Raymund Beyer
email@hidden
http://www.brainstorm-music.com
http://www.ezee.de
---------------------------------
_______________________________________________
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.