• 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: Fun (or not) with NSArrayControllers and CoreData.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fun (or not) with NSArrayControllers and CoreData.


  • Subject: Re: Fun (or not) with NSArrayControllers and CoreData.
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 31 Jul 2009 14:26:00 -0700

On Jul 31, 2009, at 10:33, Daniel DeCovnick wrote:

-(IBAction)newJob:(id)sender
{
id folder = [self currentFolder];
CCCEJob *newJob = [NSEntityDescription insertNewObjectForEntityForName:@"CCCEJob" inManagedObjectContext: [self managedObjectContext]];
[folder addJobsObject:newJob];
newJob.rootFolder = [newJob getRootFolder];
}

Perhaps I was wrong about the inverse relationship getting set KVO- compliantly. Instead of:


	newJob.rootFolder = [newJob getRootFolder];

you could try:

	[[newJob getRootFolder] addAllDescendantsJobsObject: newJob];

(after adding @dynamic addAllDescendantsJobsObject or whatever), or, equivalently:

[[[newJob getRootFolder] mutableSetValueForKey: @"allDescendantsJobs"] addObject: newJob];

_______________________________________________

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: Fun (or not) with NSArrayControllers and CoreData.
      • From: Daniel DeCovnick <email@hidden>
References: 
 >Fun (or not) with NSArrayControllers and CoreData. (From: Daniel DeCovnick <email@hidden>)
 >Re: Fun (or not) with NSArrayControllers and CoreData. (From: Quincey Morris <email@hidden>)
 >Re: Fun (or not) with NSArrayControllers and CoreData. (From: Daniel DeCovnick <email@hidden>)
 >Re: Fun (or not) with NSArrayControllers and CoreData. (From: Quincey Morris <email@hidden>)
 >Re: Fun (or not) with NSArrayControllers and CoreData. (From: Daniel DeCovnick <email@hidden>)
 >Re: Fun (or not) with NSArrayControllers and CoreData. (From: Quincey Morris <email@hidden>)
 >Re: Fun (or not) with NSArrayControllers and CoreData. (From: Daniel DeCovnick <email@hidden>)

  • Prev by Date: Re: Hyperlinks in NSAttributedString?
  • Next by Date: Re: NSTabView Tutorial
  • Previous by thread: Re: Fun (or not) with NSArrayControllers and CoreData.
  • Next by thread: Re: Fun (or not) with NSArrayControllers and CoreData.
  • Index(es):
    • Date
    • Thread