• 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
Re: NSTableView philosophy question.. (MVC Pattern) where to put the dataSource delegate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: NSTableView philosophy question.. (MVC Pattern) where to put the dataSource delegate? (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: [OT] Re: ADC TV
  • Next by Date: Re: MultiThreading should I or shouldn't I?
  • Previous by thread: Re: NSTableView philosophy question.. (MVC Pattern) where to put the dataSource delegate?
  • Next by thread: Re: Vanishing Toolbar, Part III
  • Index(es):
    • Date
    • Thread