• 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: Mixed Core Data and "static" nodes in outline view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mixed Core Data and "static" nodes in outline view


  • Subject: Re: Mixed Core Data and "static" nodes in outline view
  • From: Rick Mann <email@hidden>
  • Date: Wed, 30 Sep 2009 17:58:26 -0700


On Sep 30, 2009, at 16:22:45, Rick Mann wrote:

I'm looking at ways of grouping some Core Data objects in a outline view. What I have are 3 or 4 different entities, and I want each of the objects of each type to appear under a parent item in the outline view.

Currently, I've implemented a simple table view and it's bound to an array controller that gets the objects from Core Data. Now I want to expand that same list to handle the other objects, so an outline view seems natural, with the top level nodes corresponding to the various types of entities, and the entities existing below.

Since the model doesn't have any notion of groups, I'd like to programmatically create the top entities, and have core data manage the children of each. Is this even possible?

Do you think I could create an plain Obj-C object with appropriate accessors to act as my grouping object, and then have it implement Core Data fetch operations to return the children? I don't know, though, how to get changes in the managed object context to be automatically reflected in the tree view using this technique. I'm sure there's some observer/key notification thing to set up, but I'm not very fluent in the programmatic aspects of that stuff.


--
Rick


_______________________________________________

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: 
 >Mixed Core Data and "static" nodes in outline view (From: Rick Mann <email@hidden>)

  • Prev by Date: When to customise the Print Panel?
  • Next by Date: NSDocumentController didCloseAllSelector
  • Previous by thread: Re: Mixed Core Data and "static" nodes in outline view
  • Next by thread: When to customise the Print Panel?
  • Index(es):
    • Date
    • Thread