• 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
Role of NSTreeController question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Role of NSTreeController question


  • Subject: Role of NSTreeController question
  • From: Dan Donaldson <email@hidden>
  • Date: Tue, 31 Jan 2006 12:23:07 -0500

I have a situation that can be modeled using entities this way :


Conference <---------------->> Author <------------>> Report | | | Conf Controller Auth Controller Report Controller

NSArray controllers are associated with all three Entity types as shown. To provide data to an NSOutlineView, I intend to add an NSTreeController bound to the NSOutlineView.

My question is, am I right in assuming that the NSTreeController then replaces the NSArrayController associated with the Conference Entity? [Conference entities are always at the root level of the NSOutline] Or does the NSTreeController reference elements of the NSArrayController, meaning it needs the array controller for the Conference.

ie like this:

	Conf TreeController
		|
	Conference <---------------->> Author <------------>> Report
	       |				       |				|
	Conf Controller			Auth Controller		Report Controller



or this?:


Conference <---------------->> Author <------------>> Report | | | Conf TreeController Auth Controller Report Controller


The intention is to have the NSOutlineView display:

v Conference 1
	v Author 1
		report text
	v Author 2
		report text 2
v Conference 2
	v Author 2
		report text 3

I posted an earlier, vaguer question about hierarchies using NSOutline with NSTreeController. I hope this one will be easier to address.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Fake NSMenu-like view
  • Next by Date: Re: How to Export My Application Meeting details to .ics file , from that to iCal
  • Previous by thread: Re: Urgent---HOW TO CHANGE MOVIE BRIGHTNESS
  • Next by thread: preventWindowOrdering not working
  • Index(es):
    • Date
    • Thread