NSWindow.delegate() crashing
NSWindow.delegate() crashing
- Subject: NSWindow.delegate() crashing
- From: David Kocher <email@hidden>
- Date: Fri, 27 Feb 2004 17:40:18 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi all,
I have a problem specific to cocoa-java with a method attempting to
return the appropriate delegate of an NSWindow:
public static CDBrowserController controllerForWindow(NSWindow
window) {
Object delegate = window.delegate();
if (delegate != null && delegate instanceof
CDBrowserController) {
return (CDBrowserController) delegate;
} else {
return null;
}
}
This is adapted straight from the example code in
/Developer/Examples/Java/AppKit/TextEdit/Document.java
Sometimes (but not always reproducable) the application crashes with
the following statement in the console.log
- - --
2004-02-24 23:01:38.648 Cyberduck[1096] warning: can't find Java class
for Objective C class (null). Returning
com/apple/cocoa/foundation/NSObject.
- - --
and a crashlog
- - --
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : Bus Error occurred at PC=0x90831244
Function=[Unknown.]
Library=/usr/lib/libobjc.A.dylib
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at com.apple.cocoa.application.NSWindow.delegate(Native Method)
at
ch.cyberduck.ui.cocoa.CDBrowserController.controllerForWindow(CDBrowserC
ontroller.java:52)
at
ch.cyberduck.ui.cocoa.CDMainController.checkForMountedBrowsers(CDMainCon
troller.java:321)
at
ch.cyberduck.ui.cocoa.CDMainController.applicationShouldTerminate(CDMain
Controller.java:310)
- - --
any hints what could cause the problem are appreciated; thanks :)
- - -dk
(ps: please cc: to me, I am in digest mode)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQFAP3LydBH4SdTFvT4RAmdCAJ4hbHygshGPSdkOYfj2It3KC1wkZQCeId9+
lw0eqRzaMQ0FRrEMyEv+K8U=
=zlG0
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.