• 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: NSUndoManager and runModalForWindow: (again)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUndoManager and runModalForWindow: (again)


  • Subject: Re: NSUndoManager and runModalForWindow: (again)
  • From: Kevin <email@hidden>
  • Date: Mon, 16 Nov 2009 15:08:25 -0600

On Nov 16, 2009, at 1:12 PM, Kyle Sluder wrote:

On Mon, Nov 16, 2009 at 10:50 AM, Kevin <email@hidden> wrote:
I have confirmed that undo/redo is getting called on the temporary MOC's
undo manager as I can have changes in the main window, none of which are
affected if I undo/redo in the modal window.

This isn't necessarily a confirmation of that. Check in the debugger to be absolutely sure.

Did that and yes, the temporary MOC's undo manager is being called.


Maybe try abandoning -groupsByEvent?

I did and it worked. Calling [[self.temporaryMOC undoManager] setGroupsByEvent:NO] did the trick.


Although I'm ecstatic that it worked, I'm not sure why it did. Many thanks for suggesting that.

- Kevin


--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: NSUndoManager and runModalForWindow: (again)
      • From: Kyle Sluder <email@hidden>
References: 
 >NSUndoManager and runModalForWindow: (again) (From: Kevin <email@hidden>)
 >Re: NSUndoManager and runModalForWindow: (again) (From: Keary Suska <email@hidden>)
 >Re: NSUndoManager and runModalForWindow: (again) (From: Kevin <email@hidden>)
 >Re: NSUndoManager and runModalForWindow: (again) (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Stack-based C++ class to wrap NSAutoreleasePool
  • Next by Date: Re: NSUndoManager and runModalForWindow: (again)
  • Previous by thread: Re: NSUndoManager and runModalForWindow: (again)
  • Next by thread: Re: NSUndoManager and runModalForWindow: (again)
  • Index(es):
    • Date
    • Thread