• 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
iTunes-like outline view using core data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iTunes-like outline view using core data?


  • Subject: iTunes-like outline view using core data?
  • From: "Carter R. Harrison" <email@hidden>
  • Date: Sun, 5 Aug 2007 17:50:38 -0400

I'm trying to setup an iTunes-like outlineview with a core data application. The goal is to have heading cells (like the "Library", "Store", and "Playlist") that draw differently from their contents in the tree. So far what I've tried to do is have an abstract core data entity (we'll call it "abstractOutlineEntity"). Then I have two concrete entities that have "abstractOutlineEntity" as their parent object. In my nib file, I have the outlineview set to hold "abstractOutlineEntity" entities. As for the two concrete entities, one of them is supposed to act as a heading cell in the outlineview, and the other is supposed to act as a child cell. This seemed like the logical way to do this - b/c the outlineview is set to hold "abstractOutlineEntity" entities which my concrete entities are.

Now when my app launches I can correctly display the heading cells, but when I try to create a child object using a custom subclass, the child object appears correctly as a child in the outlineview like it should, but it also appears a second time as a root level object. I've tried to draw the resulting tree below after trying to add a new child object. Does anybody have any idea how to prevent this? Thanks in advance.

-Library (heading cell)
-Playlists (heading cell)
	- My Cool Playlist (child cell)
-My Cool Playlist (appearing again as a heading cell - not what i want)




Regards, Carter

_______________________________________________

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: iTunes-like outline view using core data?
      • From: Ken Kania <email@hidden>
    • Re: iTunes-like outline view using core data?
      • From: Keith Duncan <email@hidden>
  • Prev by Date: Re: Drag with NSTableview
  • Next by Date: Re: sortedArrayUsingFunction:context: and other variables
  • Previous by thread: Re: sortedArrayUsingFunction:context: and other variables
  • Next by thread: Re: iTunes-like outline view using core data?
  • Index(es):
    • Date
    • Thread