Skip navigation.
 
mlRandom crashes after abortEditing
FROM : Amar Sagoo
DATE : Sat Nov 30 16:19:01 2002

Hi,

I am using an NSOutlineView where after cancelling editing
programatically, I occasionally get crashes when trying to start
editing something again afterwards.

This is how I cancel editing:
   [outlineView abortEditing];
   [documentWindow makeFirstResponder:outlineView];

And this is how I start editing from another method later:
   [outlineView editColumn:0 row:[outlineView selectedRow] withEvent:nil
select:YES];

This sometimes leads to crashes, either SIGABRT, SIGSEGV, SIGBUS or
EXC_BAD_ACCESS, apparently randomly. When running in the debugger, I
can see that in the stack the error occurs within a call to
[NSTableView selectedCell].
This doesn't seem to happen if I replace abortEditing with
validateEditing.

Any ideas?

Cheers
Amar


Related mailsAuthorDate
mlRandom crashes after abortEditing Amar Sagoo Nov 30, 16:19
mlRe: Random crashes after abortEditing Evan Gross Dec 4, 18:17