managedObjectContext hasChanges
managedObjectContext hasChanges
- Subject: managedObjectContext hasChanges
- From: Mu Lin <email@hidden>
- Date: Wed, 4 Oct 2006 13:37:15 -0700
Hi, All, I found that the bind to the key "hasChanges" of
managedObjectContext doesn't work.
I did exactly the same as Mmalcolm suggested. Any suggestions?
FROM : mmalcolm crawford
DATE : Mon Jun 20 22:58:33 2005
On Jun 20, 2005, at 10:47 AM, Jeff LaMarche wrote:
> In a Core Data application, I've got the Save menu item bound to
> the saveAction: of my application delegate which works. I'd like to
> have the menu disabled, however, until a change has been made. Is
> there any way to bind the enabled binding of the menu item to the
> context or model to do this, or do I have to write code to handle
> this?
>
Assuming that you're using the default configuration for a Cocoa Core
Data Application, you can bind enabled to [App
Delegate].managedObjectContext.hasChanges
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden