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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to