NSException raised within [NSView setHidden]
NSException raised within [NSView setHidden]
- Subject: NSException raised within [NSView setHidden]
- From: Rudi Sherry <email@hidden>
- Date: Mon, 24 Oct 2005 18:12:35 -0700
I have a web plugin and when I close the Safari window containing
content showing that plug-in, I get a raise within [NSView setHidden].
The view looks good as far as I can tell; we created it and its
dealloc was never called.
When told to stop, we recurse on our hierarchy of views (NSControl
subclasses), depth-first tree iterating calling
[aView recurseOnSubviewsDoingTheThreeCallsBelow ];
[aView setHidden: YES];
[aView removeFromSuperview];
[aView release];
.. that is, we destroy all its subviews in order before we destroy a
view.
The view being hidden (in the stack below) is the first responder of
the window. When we call setHidden on it, below shows what is logged
to the console and where the raise happens. (We override
[NSException raise] to make sure we catch -- and understand -- all
the raises: that's what the "StopOnException" is).
I have verified that we have not yet dealloc'ed any of our views in
this entire heirarchy.
Would this be a bug for RADAR, or is this considered normal execution
(i.e. flow control via exceptions)?
Thanks,
Rudi Sherry
2005-10-24 17:38:02.669 Safari[3021] *** Assertion failure in +
[NSView _findFirstKeyViewInDirection:forKeyLoopGroupingView:],
AppKit.subproj/NSView.m:6257
2005-10-24 17:38:02.669 Safari[3021] this method is supposed to only
be invoked on top level items
#9 0x06597548 in -[NSException(StopOnException) raise]
#10 0x9294f350 in -[NSAssertionHandler
handleFailureInMethod:object:file:lineNumber:description:]
#11 0x937035a0 in +[NSView
_findFirstKeyViewInDirection:forKeyLoopGroupingView:]
#12 0x93671f50 in _replacementKeyViewAlongKeyViewPath
#13 0x93671e30 in -[NSView nextValidKeyView]
#14 0x93659700 in -[NSView _setHidden:]
<snip -- recursion on our tree>
#68 0x95910564 in -[WebPluginController stopAllPlugins]
#69 0x9364cb08 in -[NSView _setWindow:]
#70 0x9075ab84 in CFArrayApplyFunction
#71 0x9364ce24 in -[NSView _setWindow:]
#72 0x9075ab84 in CFArrayApplyFunction
#73 0x9364ce24 in -[NSView _setWindow:]
#74 0x93660620 in -[NSScrollView _setWindow:]
#75 0x9075ab84 in CFArrayApplyFunction
#76 0x9364ce24 in -[NSView _setWindow:]
#77 0x9075ab84 in CFArrayApplyFunction
#78 0x9364ce24 in -[NSView _setWindow:]
#79 0x9075ab84 in CFArrayApplyFunction
#80 0x9364ce24 in -[NSView _setWindow:]
#81 0x9075ab84 in CFArrayApplyFunction
#82 0x9364ce24 in -[NSView _setWindow:]
#83 0x9075ab84 in CFArrayApplyFunction
#84 0x9364ce24 in -[NSView _setWindow:]
#85 0x936cc96c in -[NSWindow dealloc]
#86 0x00018cf0 in ??
#87 0x0002d6f4 in ??
#88 0x0002d688 in ??
#89 0x9072e88c in __CFArrayReleaseValues
#90 0x9072e5f8 in __CFArrayDeallocate
#91 0x9072b734 in _CFRelease
#92 0x9285f708 in NSPopAutoreleasePool
#93 0x9362e0b4 in -[NSApplication run]
#94 0x9371e8bc in NSApplicationMain
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden