Re: Core Data: Begin+End Undo Group = Dirty Dot. Why?
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