• 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: Two NSTableViews, two data sources, one data model?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two NSTableViews, two data sources, one data model?


  • Subject: Re: Two NSTableViews, two data sources, one data model?
  • From: "Gary L. Wade" <email@hidden>
  • Date: Wed, 27 Jul 2011 09:08:51 -0700

I found it cleaner to have a separate object from my document be the data source (and delegate) for four separate views (table, outline, browser, collection) showing a folder hierarchy.

- Gary L. Wade (Sent from my iPhone)

On Jul 26, 2011, at 10:53 PM, Izak van Langevelde <email@hidden> wrote:

> I currently have a single NSDocument subclass, which is also a data source for two different tables. Because the two tables show different aspects of the data and the code gets a little cluttered up, I am thinking about implementing two separate data sources, one for each table, both fetching its data from the same data model.
>
> The only way I see right now, is keep the data model in the NSDocument subclass, and to connect both data sources to the File Owner, which is a Window Controller, and from there access the document. Is there a more direct way of achieving this?
> ---
> Grinnikend door het leven...
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Two NSTableViews, two data sources, one data model? (From: Izak van Langevelde <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 8, Issue 565
  • Next by Date: Re: How can i change a app position and size?
  • Previous by thread: Two NSTableViews, two data sources, one data model?
  • Next by thread: Failing in -init
  • Index(es):
    • Date
    • Thread