• 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: CoreData, setValue, needsDisplay, and undo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData, setValue, needsDisplay, and undo


  • Subject: Re: CoreData, setValue, needsDisplay, and undo
  • From: Rob Keniger <email@hidden>
  • Date: Sat, 17 Mar 2007 14:26:48 +1000


On 17/03/2007, at 10:32, Chris Hanson wrote:

A good, modern way to do this would be to implement bindings support in your view, and set it up to bind to a standard kind of NSController (Object, Array, or Tree, whichever's most appropriate) which is in turn bound to your model.

This works very well but I found this method to have a fairly steep learning curve. Probably the best "simple" demonstration of how this can be done is mmalcolm crawfords' Graphics Bindings example:


http://homepage.mac.com/mmalc/CocoaExamples/controllers.html

And here is another excellent and more complex example using Core Data:

http://edouard.fischer.free.fr/EFLaceView.dmg.zip

Custom views bound to NSTreeControllers are best avoided in Tiger, there are a lot of issues.

- rob.keniger

_______________________________________________

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


References: 
 >CoreData, setValue, needsDisplay, and undo (From: Timothy Larkin <email@hidden>)
 >Re: CoreData, setValue, needsDisplay, and undo (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: Core Data & threads [re: Ping: Look for hints for "nested transaction" problem with Core Data]
  • Next by Date: Re: Does willChange:valuesAtIndexes:forKey: work correctly?
  • Previous by thread: Re: CoreData, setValue, needsDisplay, and undo
  • Next by thread: Setting the Key window after sheet ends
  • Index(es):
    • Date
    • Thread