Re: Creating a managed object without adding it to the context?
Re: Creating a managed object without adding it to the context?
- Subject: Re: Creating a managed object without adding it to the context?
- From: Andreas Mayer <email@hidden>
- Date: Sun, 25 Jan 2009 08:39:52 +0100
Am 25.01.2009 um 00:51 Uhr schrieb Ulai Beekam:
My problem is that when I add directly to the managed object
context, the item is not getting selected automatically in the array
controller (by the way, I see the selection visually by means of the
table view bound to the array controller) even if I have checked the
"select on insert" checkbox on the array controller in Interface
Builder.
IIRC that happens when you insert the object directly into the managed
object context without going through the array controller.
I.e. by using NSManagedObject's
-initWithEntity:insertIntoManagedObjectContext:
instead of NSArrayController's
-addObject:
That's why I asked about this. But yes, when I come to think about
it now as you say it, it kind of makes little sense to be creating a
managed object that is not in the context.
I beg to differ. :) See my previous post.
Andreas
_______________________________________________
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