• 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: NSOutlineView with Multiple Core Data Entities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView with Multiple Core Data Entities


  • Subject: Re: NSOutlineView with Multiple Core Data Entities
  • From: Garrett Bjerkhoel <email@hidden>
  • Date: Fri, 25 Jul 2008 13:30:07 -0700

Here is a rough sketch of my datamodel. If you like I can take a screenshot and post a link to it.
Client
---Project
----Todo
Writeoff
---Item


By each entity having its own group, I am refering to say Mail.app how it has "MAILBOXES", then "REMINDERS", or in iTunes "DEVICES", and "LIBRARY". My intention was to have multiple group nodes as well as multiple child nodes.

On regards to your project, here you go:
Once it loads, nothing is clickable :(

In the debugger, this is what it says:
2008-07-25 12:35:01.031 SortedTree[1526:10b] *** -[ESTreeNode isSpecialGroup]: unrecognized selector sent to instance 0x133d20


On Jul 25, 2008, at 12:33 PM, Jonathan Dann wrote:


On 25 Jul 2008, at 17:21, Garrett Bjerkhoel wrote:

I have a NSOutlineView hooked up to a NSTreeController, which has multiple entities inside of it. I would like to know how to set it up having each entity having its own "group". I have downloaded Jonathan Dann's example, which compiles but freezes. I can see how his Core Data model works, but I already have mine set.

Haha! That's great, sorry about that. I'm interested to know where it freezes, can you tell me more so I can fix it, please!

Can you explain what you model looks like in a little more detail, and what you mean by each entity having its own group. Do you want a single group node entity or multiple group nodes as well as multiple child node entities?

Do I need to have both of my entities have a parent entity in which my NSTreeController reads from that one parent entity?


If I understand you correctly, the general concept it to have a single abstract "TreeNode" entity. This is the entity that the tree controller concerns itself with, you then can make as many concrete entities as you like that inherit from your abstract one.


Jonathan

www.espresso-served-here.com

_______________________________________________

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


  • Follow-Ups:
    • Re: NSOutlineView with Multiple Core Data Entities
      • From: Jonathan Dann <email@hidden>
References: 
 >NSOutlineView with Multiple Core Data Entities (From: Garrett Bjerkhoel <email@hidden>)
 >Re: NSOutlineView with Multiple Core Data Entities (From: Jonathan Dann <email@hidden>)

  • Prev by Date: Re: NSTableView NSTrackingArea and mouse clicks
  • Next by Date: Re: NSTableView NSTrackingArea and mouse clicks
  • Previous by thread: Re: NSOutlineView with Multiple Core Data Entities
  • Next by thread: Re: NSOutlineView with Multiple Core Data Entities
  • Index(es):
    • Date
    • Thread