Re: NSAlert runModal in outlineView:acceptDrop crashes with may not be invoked inside of transaction begin/commit pair

2020-10-31 Thread Rob Petrovec via Cocoa-dev
PLEASE PLEASE PLEASE don’t put up a modal dialog in the middle of a drag. All drags are done on the main thread. This includes calls to NSDraggingSource, NSDraggingDestination, NSFilePromiseProvider, NSFilePromiseReceiver methods and drag methods from NSTableView/NSOutlineVIew &

NSAlert runModal in outlineView:acceptDrop crashes with may not be invoked inside of transaction begin/commit pair

2020-10-31 Thread Michael Kloske via Cocoa-dev
Hello, I have an OutlineView. Whenever I drag and drop a child item within the Outline-View my application crashes when I open do an "NSAlert runModal" like in the code below: - (BOOL)outlineView:(NSOutlineView *)outlineView acceptDrop:(id < NSDraggingInfo >)info item:(id)item