override windowControllerDidLoadNib in Java?
override windowControllerDidLoadNib in Java?
- Subject: override windowControllerDidLoadNib in Java?
- From: Paul Szego <email@hidden>
- Date: Wed, 23 Jun 2004 11:04:33 +1000
In xcode 1.2, when I create a new project using the Cocoa-Java
Document-based Appplication template, I get the following method in the
document class:
public void windowControllerDidLoadNib(NSWindowController aController)
{
super.windowControllerDidLoadNib(aController);
// Add any code here that needs to be executed once the
windowController has loaded the document's window.
}
When I run the app the call to super seems to cause an endless loop:
the super method somehow causes a call back down into my classes method
again. Here's the stack after I put a breakpoint in my method, but hit
"continue" a few times:
#0 MyDocument.windowControllerDidLoadNib()
#1 com.apple.cocoa.application.NSDocument.windowControllerDidLoadNib()
#2 0x00000002 in MyDocument.windowControllerDidLoadNib() at
MyDocument.java:57
#3 com.apple.cocoa.application.NSDocument.windowControllerDidLoadNib()
#4 0x00000002 in MyDocument.windowControllerDidLoadNib() at
MyDocument.java:57
#5 com.apple.cocoa.application.NSDocument.windowControllerDidLoadNib()
#6 0x00000002 in MyDocument.windowControllerDidLoadNib() at
MyDocument.java:57
Has anyone else seen this? Any idea what's wrong? If I comment out the
method the app runs.
Thanks,
Paul.
_______________________________________________
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.