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: Jerry Krinock <email@hidden>
- Date: Sat, 24 Jan 2009 19:26:55 -0800
On 2009 Jan 24, at 15:51, Ulai Beekam wrote:
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.
I'm still confused about what you're having trouble with. But,
inserting a managed object and selecting it in a table controlled by
an array controller is a very standard design, like this...
http://developer.apple.com/samplecode/DepartmentAndEmployees/index.html
When you run that sample project, click "Add", fill in a name and you
see your new Employee gets selected in the table. Just study how it's
done there.
_______________________________________________
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