same table, different delegates
same table, different delegates
- Subject: same table, different delegates
- From: Koen van der Drift <email@hidden>
- Date: Thu, 25 Dec 2003 12:54:47 -0500
Hi,
I have a window with a table to display some data. The window is the
delegate so I set up all the code for populating, sorting the table in
the window code. Now I am adding a feature to the app that uses
different window, but the same table, using different data. So the
populating, sorting code is all the same. I can of course just copy all
the delegate code from one window to the other, but it seems to me that
I can do this easier, maybe by creating a MyTableView class. In that
case, I guess I need to put all the code in the table class, not in
each window. Is this a good approach, in other words, can I use a table
by itself, without the delegate?
thanks,
- Koen.
_______________________________________________
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.