Wrong undo behavior while runModalForWindow:
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