Re: Doe each NSTableView requires its own controller?
Re: Doe each NSTableView requires its own controller?
- Subject: Re: Doe each NSTableView requires its own controller?
- From: Sherm Pendley <email@hidden>
- Date: Wed, 28 Jan 2004 02:24:16 -0500
On Jan 28, 2004, at 1:42 AM, email@hidden wrote:
In my application I'm about to add an additional NSTableView instance.
Do I now need to create a new controller to implement its delegate
methods?
Not necessarily. The data source methods all take an argument that
refers to the NSTableView for which they're supplying data. You can
compare this argument to outlets that are connected to your table
views. Or, you can assign each table view a unique tag in IB, and
retrieve it with the -tag method (inherited from NSControl). The latter
is especially useful if you've factored out your data source methods
into a class other than your controller.
sherm--
_______________________________________________
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.