• 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
Wrong undo behavior while runModalForWindow:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wrong undo behavior while runModalForWindow:


  • Subject: Wrong undo behavior while runModalForWindow:
  • From: Gerd Knops <email@hidden>
  • Date: Fri, 3 Aug 2007 18:32:19 -0500

Hi All,

When I run a window modal (using NSApp's runModalForWindow:) All undos are combined into a single undo group, so when using undo all work is undone instead of just the last operation.

If I run the same window non-modal undo works as expected.

Setting the runLoopModes like this did not help:

	[[manageBPLPanel undoManager]setRunLoopModes:
		[NSArray arrayWithObjects:
			NSDefaultRunLoopMode,
			NSModalPanelRunLoopMode,
			nil
		]
	];

Anybody knows how to fix that? Is it intended behavior or a bug that should be reported?

Thanks

Gerd

_______________________________________________

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


  • Prev by Date: Re: NSPopUpButtonCell's in NSHeaderView
  • Next by Date: Catching events in an empty window.
  • Previous by thread: Re: Making my own constants for Cocoa structs
  • Next by thread: Catching events in an empty window.
  • Index(es):
    • Date
    • Thread