Re: CoreData, setValue, needsDisplay, and undo
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