MVC and multiple tables
MVC and multiple tables
- Subject: MVC and multiple tables
- From: Chuck Soper <email@hidden>
- Date: Thu, 29 Jan 2004 11:35:30 -0800
Hello,
I have an NSTableView with an NSTextField for (Jaguar compatible)
searching of rows and a menu for filtering the rows in the table. I'm
also able to click on the column headers to sort the rows.
The source is contained in two source files (and two headers). The
first file contains the controller class (this is also the model and
the table delegate). The second file is the data source.
Now I need to create two or three very similar tables in different
parts of my programs. My first approach is to create a super class
for the controller/model/delegate class and to use separate IB
instances of the data source class. Does this seem like a reasonable
approach? I remember talking to Matthew Formica at WWDC and he said
that sometimes a class can contain both the model and controller.
Should I take the time to separate out the model from my
controller/model class and put it in its own file before creating a
super class?
Thanks,
Chuck
_______________________________________________
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.