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 protected]) 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]
