• 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: Questions on using using modal sheets with Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions on using using modal sheets with Core Data


  • Subject: Re: Questions on using using modal sheets with Core Data
  • From: Kevin Ross <email@hidden>
  • Date: Thu, 11 Jun 2009 19:09:19 -0700

Jeez, I forgot to explain that posting the notification would happen when the user accepts the changes made in the modal window. I hope it make a little more sense now.

Thanks,

Kevin



On Jun 11, 2009, at 7:03 PM, Kevin Ross wrote:

Hi all, have a Core Data document based application which uses modal sheets as a way for the user to edit the document's data. What is the best way to give the sheet the ability to operate on a copy of the data with the parents sheet's undo context? And how best to merge these changes with the main document context.

I've thought of having a unique MOC for each sheet, and then posting a custom notification that would in turn cause each MOC to perform something like:

for (id object in [managedObjectContext registeredObjects]) {
	[managedObjectContext refreshObject:object
						   mergeChanges:YES];
}

Does this way make any sense? Is there a better way to do this that I'm missing?

Thanks for any pointers!

Kevin


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: 
 >Questions on using using modal sheets with Core Data (From: Kevin Ross <email@hidden>)

  • Prev by Date: Questions on using using modal sheets with Core Data
  • Next by Date: Re: Passing References During Initialization / Nib Loading
  • Previous by thread: Questions on using using modal sheets with Core Data
  • Next by thread: Re: Questions on using using modal sheets with Core Data
  • Index(es):
    • Date
    • Thread