Re: Model change behind NSTreeController's back
Re: Model change behind NSTreeController's back
- Subject: Re: Model change behind NSTreeController's back
- From: Conor <email@hidden>
- Date: Sat, 05 May 2007 19:40:28 +0200
It should update automatically when you call
insertNewObjectForEntityForName:inManagedObjectContext; so I would double
check your interface builder settings for the tree controller.
Check out /Developer/Examples/CoreData/OutlineEdit especially the nib
settings for the tree controller for an excellent example. They are actually
using "[outlineTreeController add:sender];" but it will work with
insertNewObjectForEntityForName:. Check out dedentNote: and indentNote:
methods, you will notice they only modify then NSManagedObject in Core Data
and the tree controller updates itself as well as the outline view.
Regards,
Conor
http://www.bruji.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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