Multiple NSTableView question
Multiple NSTableView question
- Subject: Multiple NSTableView question
- From: Jason Brown <email@hidden>
- Date: Wed, 20 Jun 2001 17:53:45 -0500
I keep reading that by evaluating the theTableView argument used in
- (int)numberOfRowsInTableView:(NSTable *)theTableView
and
- (id)tableView:(NSTableView *)theTableView
objectValueForTableColumn:(NSTableColumn *)theColumn
row:(int)rowIndex
you can distinguish which table view is invoking these methods, when
using more than one table view.
My question is this: Evaluate it against what? What can I do with
that argument to figure out which table view is making the given
calls? With the second method, I know I can just query the theColumn
argument, assuming none of my tables have columns with the same name.
But there has to be a better solution that would also work for
numberOfRowsInTableView.
I realize this is probably a newbie question and I have read
something like 60 digests with no solution that I can see. Thanks.
Jason S. Brown
Vital Source Technologies
--