• 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
NSUndoManager w/ Document based app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSUndoManager w/ Document based app


  • Subject: NSUndoManager w/ Document based app
  • From: Luc Van Bogaert <email@hidden>
  • Date: Wed, 25 Jan 2012 22:23:30 +0100

Hi,

I'm currently experimenting for the first time with NSUndoManager in a document-based app. I think I understand the most important basics, and have even  succeeded in implementing some working code, where objects can be added or removed from an array property in some model object, which is a subclass of NSDocument, all with working undo/redo capability.

One thing I don't quite understand is why my document windows won't display the 'dot' in the close button when the model array property changes, even though my documents seem to keep track of the edited state correctly when I close the windows, because closing a dirty document window brings up a save dialog as expected, and a unedited one does not.

As I understand, this should automatically be taking care of by the undo manager, and I'm not supposed to send a updateChangeCount: message.

Thanks for any advice.

--
Luc Van Bogaert

_______________________________________________

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: NSUndoManager w/ Document based app
      • From: Kevin Perry <email@hidden>
  • Prev by Date: Re: Confusing CALayer Transform/Frame/Bounds Behavior
  • Next by Date: Re: NSUndoManager w/ Document based app
  • Previous by thread: Re: Bindings crash
  • Next by thread: Re: NSUndoManager w/ Document based app
  • Index(es):
    • Date
    • Thread