• 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
Making an initial change to document, and don't want the doc marked as changed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Making an initial change to document, and don't want the doc marked as changed


  • Subject: Making an initial change to document, and don't want the doc marked as changed
  • From: Graham Perks <email@hidden>
  • Date: Thu, 30 Aug 2007 09:04:50 -0500

I have some initial document setup that needs doing to a new document... imagine starting a Pages document from a template, for example. I don't want all the template instantiation to be undoable, or to mark the document as needing saving.

How do I do this? This is a Core Data-based application. I've looked for methods in NSManagedObjectContext and NSPersistentDocument. NSDocument has updateChangeCount, but it reads like I should not call it directly.

Where's -markDocumentUnchangedAndRemoveAllUndos ?

Thanks,
Graham Perks
http://www.asinglepixel.com
_______________________________________________

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


  • Follow-Ups:
    • Re: Making an initial change to document, and don't want the doc marked as changed
      • From: Felix Franz <email@hidden>
  • Prev by Date: Re: Color matching of NSBitmapImageRep
  • Next by Date: Re: Making an initial change to document, and don't want the doc marked as changed
  • Previous by thread: Re: NSOutlineView Drop
  • Next by thread: Re: Making an initial change to document, and don't want the doc marked as changed
  • Index(es):
    • Date
    • Thread