Re: NSObjectController and Core Data
Re: NSObjectController and Core Data
- Subject: Re: NSObjectController and Core Data
- From: "Sean McBride" <email@hidden>
- Date: Fri, 16 Feb 2007 11:20:51 -0500
- Organization: Rogue Research
On 2007-02-13 14:23, Kevin said:
>Problem #2:
>When I edit the contents in any of the text views and then decide to
>save my managed object context WITHOUT leaving the text view, the
>changes are not recorded. If I leave the text view, the changes do
>get recorded.
Unfortunately, this is a common problem in many Cocoa apps that use
bindings and/or core data. For example Xcode: open an .xcdatamodel, add
a new entity, change its name (but don't leave text field), File>Save,
leave the text field. Notice that only now is the change of name
noticed, and the wrong data was saved! So you are not alone! :)
I'm not sure, but since no one else has answered, I suggest you read up
on NSEditor/NSEditorRegistration. I believe the solution is there.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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