• 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: Model change behind NSTreeController's back
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Model change behind NSTreeController's back
      • From: Sam Stigler <email@hidden>
    • Re: Model change behind NSTreeController's back
      • From: Sam Stigler <email@hidden>
  • Prev by Date: Re: best way to compare selectors?
  • Next by Date: Binding NSMatrix's NSImageCells to an NSArrayController
  • Previous by thread: Re: Model change behind NSTreeController's back
  • Next by thread: Re: Model change behind NSTreeController's back
  • Index(es):
    • Date
    • Thread