• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
same table, different delegates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: same table, different delegates
      • From: "Louis C. Sacha" <email@hidden>
    • Re: same table, different delegates
      • From: Jonathan Jackel <email@hidden>
  • Prev by Date: Re: Database Application with Obj-C
  • Next by Date: Re: Table Data and NSArrayController
  • Previous by thread: Re: How do I know the screensaver is active?
  • Next by thread: Re: same table, different delegates
  • Index(es):
    • Date
    • Thread