• 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: Core Data: Begin+End Undo Group = Dirty Dot. Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: Begin+End Undo Group = Dirty Dot. Why?


  • Subject: Re: Core Data: Begin+End Undo Group = Dirty Dot. Why?
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 13 Nov 2009 19:06:14 -0800

On Fri, Nov 13, 2009 at 6:53 PM, Jerry Krinock <email@hidden> wrote:
>
> Why would the dirty dot become dirty when no change was made to the store?
>  I don't see any logical reason for this.

Because NSDocument change count is linked to the NSUndoManager
notifications.  See
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Documents/Tasks/FAQ.html#//apple_ref/doc/uid/20000954

> In my real app, I often manually begin and end a "super undo group".

AppKit already does this for you.  See -[NSUndoManager groupsByEvent]
http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Classes/NSUndoManager_Class/Reference/Reference.html#//apple_ref/doc/uid/20000211-CHDCHADA

--Kyle Sluder
_______________________________________________

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: Core Data: Begin+End Undo Group = Dirty Dot. Why?
      • From: Jerry Krinock <email@hidden>
References: 
 >Core Data: Begin+End Undo Group = Dirty Dot. Why? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Core Data: Begin+End Undo Group = Dirty Dot. Why?
  • Next by Date: Re: Bindings vs MOC change notification
  • Previous by thread: Core Data: Begin+End Undo Group = Dirty Dot. Why?
  • Next by thread: Re: Core Data: Begin+End Undo Group = Dirty Dot. Why?
  • Index(es):
    • Date
    • Thread