• 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 grouping somewhat broken?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUndoManager grouping somewhat broken?


  • Subject: Re: NSUndoManager grouping somewhat broken?
  • From: Florent Pillet <email@hidden>
  • Date: Tue, 08 Apr 2008 09:06:59 +0200

Graham Cox wrote:
I am getting funny results using grouping in NSUndoManager.

If I begin a group on mouse down, and end the group on mouse up, even if I do nothing in between, it seems to record an undo task, with the plain name "Undo" in the menu, dirtying the document. The "task" is null - it doesn't actually undo anything.

What does your undo manager's -(BOOL)groupsByEvent method say? Default is YES, so for each event a group is open and closed. You didn't mention calling -setGroupsByEvent: so I assume it is left to the default value?


Florent
_______________________________________________

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


References: 
 >NSUndoManager grouping somewhat broken? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Constraining a NSSlider to Certain Values
  • Next by Date: Re: NSUndoManager grouping somewhat broken?
  • Previous by thread: NSUndoManager grouping somewhat broken?
  • Next by thread: Re: NSUndoManager grouping somewhat broken?
  • Index(es):
    • Date
    • Thread