Multiple TableViews... same Controller?
Multiple TableViews... same Controller?
- Subject: Multiple TableViews... same Controller?
- From: Mark Manes <email@hidden>
- Date: Sun, 5 Nov 2006 23:57:59 -0800
I have an application where I have two tables. One is in one tab and
the other table is in another tab. They actually will show the same
data (but that is not really all that important).
I would like to know if I can tell when I get the following methods--
how do I tell what table it is?
- numberOfRowsInTableView
- objectValueForTableColumn
- tableViewSelectionDidChange
Do I really need to create a controller class for every table I create?
What if I really do care that the table is exactly the same? I just
want the application to act differently based on what tab the user is
in--so I need to know what tab view I am in -or- I need to know which
table item was selected.
I'd appreciate your wisdom as always..
-mark=
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden