Re: NSTableView philosophy question.. (MVC Pattern) where to put the dataSource delegate?
Re: NSTableView philosophy question.. (MVC Pattern) where to put the dataSource delegate?
- Subject: Re: NSTableView philosophy question.. (MVC Pattern) where to put the dataSource delegate?
- From: Andy Lee <email@hidden>
- Date: Tue, 25 Jun 2002 22:32:13 -0400
At 3:42 PM -0400 6/25/02, Bill Cheeseman wrote:
I find that "data source" is a misleading term. It tends to make people
think of the data itself, and some of the documentation refers to it that
way. But in Interface Builder, when you connect the "datasource" outlet, you
have to connect it to the object that holds the delegate methods,
I'd like to add that by "delegate methods" Bill means "datasource
methods" (which he has also called "data source delegate methods").
NSTableView has both a dataSource outlet and a delegate outlet, which
serve different purposes and which you may or may not choose to make
the same object. "Datasource methods" are the ones declared in the
NSTableDataSource protocol; as Bill eloquently explains, the
datasource is a Controller object. "*Delegate* methods" are the ones
documented in "Methods Implemented By the Delegate" in the class
docs; I'd say the delegate is a View class (in the MVC sense).
Just a clarification for those who might not have picked up on the
datasource/delegate distinction.
--Andy
_______________________________________________
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.